Pregunta de entrevista de LinkedIn

String manipulation, and graph questions as well