Pocket Gems interview question

find if a string is the substring of another string