Johnson Controls interview question

Find the leaders in the given array using efficient data structures and algorithms.