I have found a solution to the bug #57774 https://savannah.gnu.org/bugs/?57774 in my local machine. I have already posted my code on the bug page as comment #2 and uploaded the file as (file #48624).
I have gone through the pages for code styling and contribution guidelines. Should I wait for someone to review my code on the bugs page, or should I directly create a changeset on mercurial.
Please guide me about what the next step should be. I am doing this for the first time as a part of my GSOC application this year.