Getting wrong answer with sample input

@mayank10
I see you have received 100 for this question
If your doubt is resolved please close this

haan pr jo sample input diya uska answer glt a rha h

@mayank10
You were not using substring function correctly