Firstly, try to mention a link to your problem because it can be possible that it is problem from an ongoing contest or maybe your school assignment.
Secondly, This is a place where you can ask doubts, not a complete code for a question.
Sorry.!!
2 Likes