NVIDIA interview question

C++ code for fibonacci series