Roblox Interview Question

Leetcode Random pick with index.