Meta Interview Question

find the top k element in an array