Roblox Interview Question

Leetcode Medium Question, Linear algebra, probability.