Accenture Interview Question

inverse Fibonacci series coding round