STMicroelectronics Interview Question

Fibonacci series dp solution and output questions