RapiPay Fintech interview question

It was coding question related to DSA