Pergunta de entrevista da empresa Roblox

Leetcode Medium Question, Linear algebra, probability.