I wish I could see the timeline of this question, since it seems to me like it shouldn't have been deletable, but...
Per what we know about deletable questions:
You can't delete any question that:
- has an upvoted answer, or
- has multiple answers (even if there are no upvotes)
The revision timeline fits as well with respect to when you answered; before the second answer was added, and before anyone upvoted your answer, it was deleted twice by the OP, undeleted by the community, closed twice, reopened once, and during the second closure, was deleted by the community. Somewhere in between there, a second answer was added, meaning that the OP couldn't have deleted the question themselves.
It sucks that this sort of thing does affect you, since if the question were to last 60 days, you'd keep the rep...
Reputation changes from bounties and votes (both up and down) on deleted posts (including answers to a deleted question) are nullified. (Exception: Reputation earned for posts with a score of three or higher, and where the post has been visible on the site for at least 60 days, is retained).
...so support one of the outstanding feature requests that prevent something like this from happening.