Amazon Interview Question

1. Minimum in a rotated array 2. Max length subarray