Biz2Credit Interview Question

reasoning and calculation based