LongestValidParentheses and sudokoSolver