pegipegi interview question

Some logic question in user interview