Pregunta de entrevista de IBM

Technical Question based on the Java