Roblox interview question

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