I understand sometimes people do not write the best solution; or their solution is flawed in someway, so we downvote. However, I feel it will be good to convey in comments what's the flaw in the logic used, and then downvote if you want. I feel this might help the person who posted the logic.