Infosys Compaz interview question

Development asked mostly from me