Write a Swift program to return the first half of a given string of even length
func first_half_str(_ input: String) -> String {
let chars = input.characters
let first_half = chars.prefix(input.characters.count / 2)
return String(first_half)
}
print(first_half_str("Tech"))
print(first_half_str("Study"))
Output:

