Leetcode 3071. Minimum Operations to Write the Letter Y on a Grid | Hello Interview