Google Interview Question

Emphasis on sorting arrays.