Google interview question

Find the top k elements in an array