Meta Interview Question

1st question is like sorting arrays and getting the largest number in the queue.