Cotality interview question

Complex project that i worked before