Sollicitatievraag bij Amazon

Maximum sum subarray such that no elements are consecutive