Pergunta de entrevista da empresa First Bank

A challenge I have faced and how I resolved it