Frage im Vorstellungsgespräch bei JPMorganChase

2 coding questions on data structures and algorithms