Way2Online interview question

very easy