You used “has had” where the teacher was looking for “had had.” SNAP! ;p
That wasn’t me - the cat was on the keyboard again.