OYO interview question

Maximum sum such that no two elements are adjacent