MAQ Software Interview Question

I got a coding problem related to Fibonacci based and it was an Easy one.