Cotality interview question

Technical solutions to resolve and feedback