Pregunta de entrevista de LTM Limited

Basic java questions and easy coding question