PayPal Interview Question

tech: flatten multi-dimensional array, oop programming, sorting