Completed boxes. Passed all 4 test cases. Running time in O(n^3). To-Do: test with bigger data set.