ByteDance interview question

Algorithms a lot. Leetcode problems a lot. React code as well.