NTT DATA interview question

methods and basic programs like Fibonacci series