Microsoft Interview Question

4-sum with elements in order