Morgan Stanley interview question

1. https://www.geeksforgeeks.org/maximum-sum-such-that-no-two-elements-are-adjacent/