Whatfix Interview Question

java basic questions question to make all zero to end