Add solutions to leetcode string related questions