Tech extensor interview question

They were asked Problem solving logic to me.