Implement StrStr, Longest Palindromic Substring

Exercises from LeetCode, they are both accepted