Sum of Fibonacci Series: Medium Programming Problem