adding findSubstring longestValidParen nextPermut