Luxoft interview question

Coding task from leetcode: 283. Move Zeroes