Piron interview question

3-5 question from collection