Sollicitatievraag bij J.P. Morgan

Basic algorithms questions. Such as integer counting.