This question was put on hold and then deleted by the user. And for this specific question, I think that is fine. It was off-topic as it didn't include the translated code, only the original version. He was asking for someone to write code for him.
However, let's look at the close reason we provided the user:
put on hold as off-topic by people 3 hours ago
- This question does not appear to be a code review request within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question or leave a comment.
This is the on-hold reason the system generates when a custom reason is used for closing a question. So the user might well turn to the comment left by the custom close reason:
This question appears to be off-topic because it is about porting code to another language.
And this disappoints me.
The question definitely needs to be closed, and there are multiple good existing reasons to close the question.
Moreover, questions about translating code aren't strictly off-topic, and this comment along with an unspecific close reason leads anyone who might see a question like this while it was still on hold to believe that somehow questions about some code you translated from one language to another are somehow off-topic here.