Keeper Tax interview question

Classic algorithm question but can’t remember exactly what