Implement merge sort and largest 1-rectangle | Two Sigma Interview Question