MCB Bank interview question

Technical ques