Tencent interview question

Two medium/hard LeetCode questions + CS fundamentals