G10 Consultancy Interview Question

Basics of java