My problem is how to get character from a word
The result I needed is
DisplayChar("asd",1)
and it will display "a"
func DisplayChar(word : String, number : Int) -> String{
    let i: Int = count(word)
    var result = 0
    result = i - (i - number)
    var str = ""
    var j = 0
    for j = 0; j < result; j++ {
        str = str + word[j]
    }
    return str
}
DisplayChar("xyz", 2)
 
     
     
     
     
    