loop: hello (-1) minusOne loop minusOne checkEnd+1 checkEnd: Z hello (-1) Z Z loop . minusOne: -1 . hello: "Hello World\n" Z: 0