Frage im Vorstellungsgespräch bei PEAK6

Question that was around a leetcode medium difficulty