Tencent interview question

Leetcode and cs fundamentals questions