Domanda di colloquio di OYO

Maximum sum such that no two elements are adjacent