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