Infosys Interview Question

Basics questions ans some real time