Roblox Interview Question

range sum in a 2d array