Pratham Software Interview Question

Final year project and oops