Frage im Vorstellungsgespräch bei Paradyme Management

Leetcode style problem, easy/medium difficulty