RethinkDB interview question

Find kth largest number from a stream