TikTok Interview Question

Maximize sum with no adjacent elements