ExxonMobil interview question

Max sum without adjacent elements