Pregunta de entrevista de Pocket Gems

2 coding questions 1) Related to string manipulation 2) Graph