Databricks interview question

Max sum in array, but without choosing neighbours elements.