TikTok interview question

typical leetcode, lot of 2d array problems, binary tree, probability...