This self-answered question has $5$ downvotes . Metamorphy commented that 'Still the question should have a context and not just a problem statement' after which I added an attempt. After discussion with Paramanand Singh here in this chat, I edited the question and added the link which helped me in finding the solution,i.e, the context. I generated this question on my own while solving another question, which I mentioned in the question. Now, it didn't appeal to me why are the downvotes coming? Is it because that they don't find this question interesting? According to the Stack overflow blog here, it is encouraged to ask and answer your own questions. But that does not seem to be the case here. In the constructive feedback room, I was told that self-answered questions have to meet high-quality standards. This means, that my question was low-quality. But how? Could I know the reason?
How could I improve so that it may not attract downvotes?