EY interview question

Nothing much difficult.