Amazon interview question

Given n Cartesian coordinates find largest/smallest amongst them