TikTok Interview Question

Leetcode hard Object Oriented Programming