LeetCodeAnt on the BoundaryAnt on the BoundaryEasyArraySimulationPrefix SumSolution export function returnToBoundaryCount(nums: number[]): number { let answer = 0; let step = 0; for (const num of nums) { step += num; if (step === 0) { answer += 1; } } return answer; }LeetCodeAnt on the Boundaryhttps://leetcode.com/problems/ant-on-the-boundary