let text = "four score and seven years ago"
for var index = text.characters.count - 1; index != 0; index-- {
print(text.characters[index])
}
let greeting = "Guten Tag!"
greeting[greeting.startIndex]
// G
greeting[greeting.endIndex.predecessor()]
// !
greeting[greeting.startIndex.successor()]
// u
let index = greeting.startIndex.advancedBy(7)
greeting[index]
// a
var str = "Hello, playground"
for chr in str.characters.reverse() {
print(chr)
}