This answer was deleted. You'll only be able to see it if you have requisite privileges.
This is the revision history. The answer seems alright.
One problem is the irrelevant link, which might be why it was deleted but that could have been just edited out. It is also a strict subset of the other answer, but that's not the reason I have seen answers getting deleted for.
I don't understand what's going on. Is this some policy that I'm unaware of?