Break and continue

solution without having to use break and continue