Pregunta de entrevista de Visa Inc.

nothing unexpected, simple java code to write method with loops.