Frage im Vorstellungsgespräch bei J.P. Morgan

Basic algorithms questions. Such as integer counting.