Microsoft interview question

4-sum with elements in order