Infosys Interview Question

oops concepts, sql queries, general logical questions