Yesterday I was surprised to find that this question was deleted by the time I had finished writing an answer to it, so that the answer could not be posted. Apparently it was OP himself who deleted the question.
Now such things happen, but in this case I could not see what really happened or why. The question is OK by most standards, there were two answers (unaccepted and without votes), both deleted, in case of the first question this was "by owner" (I presume the other answer was deleted because the question was).
I could make guesses about what happened; for instance the question looks like an assignment, and maybe OP was afraid that whoever gave the assignment would find out. Maybe, but it is pure speculation. The point that the question being deleted, there is no way to even ask for clarification, since comments are disabled. (Of course one cannot be sure OP would care to reply to a deleted question either, but at least one could try.) I voted for undeleting the question, but this has little effect. Is there any means provided to help figure out what went on in such cases?