TikTok Interview Question

data structure algorithm, array, 2 objective 3 coding question