Pregunta de entrevista de Keytree

Selecting a few characters from a given string.