Frage im Vorstellungsgespräch bei Acquia

1 and 2: Coding Round with LeetCode medium complexity question.