Axis Bank interview question

In the second interview, I was given a case to solve