Tencent interview question

Basic system design and algorithms