TopperLearning interview question

A normal puzzle question