TikTok interview question

recursion, binary tree, building API endpoints, merging sorted arrays