NAKAD interview question

Q1 Find Top-k elements in an array.