Pregunta de entrevista de Tata Consultancy Services

Technical perspective they asked like java