JPMorganChase Interview Question

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