Amazon Interview Question

A coding question about finding the greatest subarray.