Find top-k elements in an array · InterviewLane