Pregunta de entrevista de Roblox

Leetcode Medium Question, Linear algebra, probability.