Cotality Interview Question

Complex project that i worked before