Maximize sum with no adjacent elements | TikTok Interview Question