Five names landed in the intake log this week: Alice Green, Bob Vance, Alice Green, Charlie Day, Bob Vance. Customers arrive through three doors at this bank: the branch desk, the mobile app, and a kiosk in a shopping centre. The same person can register twice without anyone noticing.
Alice Green is on the list twice. She opened an account on Monday, applied for a card on Wednesday, and signed up for a financial literacy webinar on Friday. Three touchpoints, three submissions, one customer. Nobody typed her name wrong. The system simply has no idea it already knows her.
Someone offered to fix it with the Remove Duplicates button. The compliance officer said no. Each row is a submission with a timestamp. The auditor does not want unique names. He wants the pattern: who tried to register twice, how often, and in what order. Deleting rows answers a different question and destroys the evidence on the way.
So every row stays. Only a label gets added, and the question changes shape. It is no longer whether this name repeats somewhere in the list. It becomes: how many times has this name appeared from the top of the list down to this row? Alice Green's first row answers 1. Her second answers 2. First appearance is a Keep, anything after that is a Duplicate.
That count is where this challenge earns the word Hard. The range it looks at has to grow, and its start has to stay fixed. Both failures are quiet.
Let the start slide down with the row and each row inspects only itself. Every name looks new: five Keeps, zero Duplicates. Lock both ends of the range and every row sees the finished column. Alice then looks like a repeat even on her first appearance: zero Keeps, five Duplicates.
Neither mistake shows an error code. Both show up in the summary instead.
The summary in row 9 is the check. Five submissions split into three unique clients and two repeats. If those two counts do not add back to five, or if one has swallowed everything, the labels above are wrong. The range is the first place to look.
A name can also appear three times. The third appearance still counts as a Duplicate, and nothing in the log forbids it. Column B is empty from row 2 down, and row 9 wants the three totals.