Roblox Interview Question

C++, memory understanding etc. array based algorithmic question