Infosys Interview Question

Find the leaders in an array