Nubank Interview Question

Multi level OOP style coding question in increasing difficulty