Pramoda interview question

Basic question