Pregunta de entrevista de HCLTech

Technical round. Basic java questions.