/**
 * This exercise focuses on using a while loop with strings to manipulate the
 * name of an actor or actress, and understanding what a tuple is. The goal is
 * to return a modified version of the name, where the first name is reversed
 * and the last name is uppercase, combining them into a single string.
 *
 * @param name The name of the actor or actress.
 * @return The modified name with reversed first name and uppercase last name.
 */
fun actorOrActressName(name: String): String {

    // Splitting the name into first name and last name
    val (firstName, lastName) = name.split(" ")

    // Reversing the first name using string slicing
    val reversedFirstName = firstName.reversed()

    // Changing the last name to uppercase
    val uppercaseLastName = lastName.toUpperCase()

    // Combining the modified first name and last name into a single string
    val modifiedName = "$reversedFirstName $uppercaseLastName"

    return modifiedName
}
/**
 * This exercise focuses on using a while loop with strings to manipulate the
 * name of an actor or actress, and understanding what a tuple is. The goal is
 * to return a modified version of the name, where the first name is reversed
 * and the last name is uppercase, combining them into a single string.
 *
 * @param name The name of the actor or actress.
 * @return The modified name with reversed first name and uppercase last name.
 */
fun actorOrActressName(name: String): String {
/**
 * This exercise focuses on using a while loop with strings to manipulate the
 * name of an actor or actress, and understanding what a tuple is. The goal is
 * to return a modified version of the name, where the first name is reversed
 * and the last name is uppercase, combining them into a single string.
 *
 * @param name The name of the actor or actress.
 * @return The modified name with reversed first name and uppercase last name.
 */
fun actorOrActressName(name: String): String {

    // Splitting the name into first name and last name
    val (firstName, lastName) = name.split(" ")

    // Reversing the first name using string slicing
    val reversedFirstName = firstName.reversed()

    // Changing the last name to uppercase
    val uppercaseLastName = lastName.toUpperCase()

    // Combining the modified first name and last name into a single string
    val modifiedName = "$reversedFirstName $uppercaseLastName"

    return modifiedName
}