Infosys interview question

Loops, General Aptitude, inheritance, Classes