Solved PalindromePartitioning and LongestSubstringWithoutRepeatingCharacters