I was trying to write a code where all the 0s will be moved to the right of the array. I just used a left and a right pointer.
public class Solution {