Pergunta de entrevista da empresa IBM

Technical Question based on the Java