Pergunta de entrevista da empresa Cognizant

Write a program to move all zeros in an array/list to the right side while keeping the order of non‑zero elements intact.