Amazon Interview Question

A sorted array has been rotated. Find the largest and smallest number.