Frage im Vorstellungsgespräch bei G-Research

For the algorithm question they asked Leetcode question 135.