In the first 15 mins I was #165🤣.
First question-&gt; a direct implementation.
Second question-&gt; A dfs+3d-DP question. Intuition being that for the traversal from top-left to bottom right required a dfs traversal in two directions. DP to check the neutralisation variation in a cell