TikTok Interview Question

LC easy solved with binary search