Frage im Vorstellungsgespräch bei JPMorganChase

First question was relatively easy, second question was pretty difficult string question