JPMorganChase interview question

One string manipulation problem One chess-related problem from LeetCode (hard level)