I have this question, when I asked it it was closed by the reason of :
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the "expected" results.
Even though I included my attempted solution and why it didn't work. But the problem is that I didn't include a code, because it was obsolete: it would only provide additional characters to the text.
The question has a perfect answer and it was accepted. I don't really get the problem.(I didn't mind it being closed but till now I'm still getting downvotes which I don't like.)