Intel Corporation interview question

LeetCode Questions for SW implementation of a grid