IIT Kanpur interview question

very basic yet very conceptual