Pocket Gems interview question

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