TikTok interview question

Maximize sum with no adjacent elements