PayPay interview question

code share with fibonacci series