ExxonMobil Interview Question

Max sum without adjacent elements