FICO interview question

Basic DS ALGO