JPMorganChase interview question

Maximize the subarray without adjacent elements