The answer in question showed up in the low quality queue, and is not a good answer in general for Code Review. We expect code to go along with explanations and answers to not just be a code dump.
I don't know why your answer was deleted (or by whom). Answers are not regularly deleted on this site unless it becomes an issue of moderation and authors are usually given the chance to respond to any warnings (such as the one currently on your post).
Note that your answer may have been flagged for deletion because it falls under the category of "Not An Answer", which users may have elected to do because as mentioned earlier your answer does not meet appropriate standards for Code Review.
Again, this doesn't really tend to happen, only in cases of moderation or low quality. Consider addressing the notice @Jamal has added to your answers and elaborating on your answer, else it may still get flagged for deletion by other users.