Pregunta de entrevista de J.P. Morgan

Had to code in vba on a mini simulation