Databricks Interview Question

Max sum in array, but without choosing neighbours elements.