Sing Fuels interview question

How to design a credit model?