To be able to avail of the benefit of the collective experience that the monks have and take a rewarding educational leap you've got to make sure you provided enough details representing your problem communicated through :
- Clear language.
- Input example.
- Required output form/example.
- your coding attempts (succeeded or partially succeeded or totally flipped).
That way you will be able to identify strengths and weaknesses in your approach, patch up and polish the code you write and be able to help those who respond to your query so that they provide to you a suitable approach in line with your skills for you to build upon. You will also get to help others who are coming after you up the path
to monkeyness by posting questions that will stand the test of time because they're wholesome, clear and concise. So when you say
'I'm not able to convert'
you're being unclear for you've not mentioned what you have tried to do so far to accomplish this task.
The above list is not exhaustive....Also take time to read:
Excellence is an Endeavor of Persistence.
A Year-Old Monk :D .