Tech extensor Interview Question

They were asked Problem solving logic to me.