Saving

Could you go through the steps of what your program is doing? The logic of it? I personally don't understand the for loop.