Chapter 12 Bronze Solution

Hello! Here is the code I used for my solution:

func greetByMiddleName(fromFullName name: (first: String, middle: String?, last: String)){

guard let middleName = name.middle else {
    print("Hey there!")
    return
}

guard middleName.count < 10 else {
    let middleInitial = middleName.first
    print("Hello, \(name.first) \(middleInitial!). \(name.last)!")
    return
}

print("Hey, \(middleName)!")
}