It was a 1 hr exam and it contained two coding questions.One was similar to https://leetcode.com/problems/word-search/ but we instead of one word we are given a list of words and asked to return those which are present in the matrix.
And the second one is as follows:




Please comment the solution if anyone get it :)