TikTok interview question

Leetcode coding questions on matrices