Pregunta de entrevista de Sierra Digital

write a program to find the length of substring