Affirm interview question

Debug existing code on parsing data