Domanda di colloquio di TikTok

Similar to Longest Increasing Path in Matrix problem