Yandex interview question

Task from leetcode to remove all zeroes from vector in O(1)