Frage im Vorstellungsgespräch bei Applied Intuition

The question was based on data structure and algorithm