Pregunta de entrevista de J.P. Morgan

Some coding challenges using loops and arrays.