Lowest unique bid auction
Anonymous
write a comparator that sort the bids by their frequency first and then if 2 bids have same frequency then compare their values. the value at the begining/end(depending on your sort type) will be the result. you can also use priority queue for that.
Check out your Company Bowl for anonymous work chats.