Wireless Logic interview question

Leetcode hard multidimensional array style questions and numbers manipulation.