Distributed Sorting – Google Interview Question