jugged but working

called the function zerosAtEnd multiple times