Roblox interview question

sliding windows, maximum continuous sub array algorithm