Amazon Interview Question

Sort three list together in O(n^2) or better