Amazon Interview Question

Find min and max from the array