Amazon Interview Question

How to find the number corresponding to a certain rank in an array