VNG Corporation interview question

Leet code problem, Data structure and algorithm question