Leetcode 3028. Ant on the Boundary | Hello Interview