ArriseRole: Software Development EngineerSeptember 2026
Interview question
Write code to move all zeros in an integer array to the end, preserving the relative order of nonzero values and without using any extra arrays. Example input: [-5,1,0,2,0,5,0,0,3,0,-2,-3]. Expected output: [-5,1,2,5,3,-2,-3,0,0,0,0,0].