Infosys Interview Question

OOP question, database, loops and conditional etc.