CG Infinity Interview Question

every thing was easy just basic OOPS concepts and last project