Revolut interview question

Gave tasks