Frage im Vorstellungsgespräch bei We.Vision

I was asked to write a code to solve a data structure problem