Affirm interview question

data structure, algorithms, etc.