Pregunta de entrevista de J.P. Morgan

behavior question with a bit coding ones