TikTok interview question

Coding Test lots of rethinking of classic algorithm problems