TikTok Interview Question

leetcode questions like 3sum, find substrings