EY interview question

was fairly straightforward