TikTok Interview Question

Question about how to do some matrix operations