JPMorganChase Interview Question

Maximize the subarray without adjacent elements