Come on people!!!!!
https://codereview.stackexchange.com/q/221948/507
Closing this as of-topic is ridiculous. It compiles it runs it works (for specific input). Yes it has flaws but this code is basically 99.9999999% complete and for a beginner an already large investment of time.
We have a small community that most of us would like to see grow. But cutting of newbies like this is not going to help grow the community its just going to isolate it.
The OP is is clearly marked as "New contributor" you are supposed to be nice and a little more lenient towards these contributors and give them a helping hand. Reviewing this code would have been no effort because it actually works you don't need to fix anything for him and you can give him/her extra valuable information as part of the review that would help them become a beter contributed in the future.