Lendsqr interview question

To write the backend implementation for a loan feature