Pregunta de entrevista de UPS

Finding the given character from a string