Change 2-02's solution to a while loop

A recursive function is a bit much for something that simple.