NVIDIA Interview Question

C++ code for fibonacci series