Frage im Vorstellungsgespräch bei Amazon

Maximum sum subarray such that no elements are consecutive