/**
 * Given a full name of an actor/actress and the number of characters desired,
 * return the truncated version of the name
 */
fun getTruncatedName(fullName: String, numCharacters: Int): String {


    var truncatedName = ""

    // Determine the length of the full name
    val nameLength = fullName.length

    // Loop through each character in the full name
    for (i in 0 until nameLength) {

        // Check if the character index is within the desired limit
        if (i < numCharacters) {

            // Concatenate the character to the truncated name
            truncatedName += fullName[i]
        }
    }

    return truncatedName
}
/**
 * Given a full name of an actor/actress and the number of characters desired,
 * return the truncated version of the name
 */
fun getTruncatedName(fullName: String, numCharacters: Int): String {
/**
 * Given a full name of an actor/actress and the number of characters desired,
 * return the truncated version of the name
 */
fun getTruncatedName(fullName: String, numCharacters: Int): String {


    var truncatedName = ""

    // Determine the length of the full name
    val nameLength = fullName.length

    // Loop through each character in the full name
    for (i in 0 until nameLength) {

        // Check if the character index is within the desired limit
        if (i < numCharacters) {

            // Concatenate the character to the truncated name
            truncatedName += fullName[i]
        }
    }

    return truncatedName
}