/**
 * This exercise requires the completion of a function that concatenates different parts of a person's information.
 *
 * The function should take in three parameters: name (a string), location (a string), and age (an integer).
 * The function should concatenate the name, location, and age together into a single string using substring and
 * the plus assignment operator. The function should return the resulting string.
 *
 * Example:
 *
 * name = "John Doe"
 * location = "New York"
 * age = 35
 *
 * concatenateStringParts(name, location, age) => "John DoeNew York35"
 */
fun concatenateStringParts(name: String, location: String, age: Int): String {

    // Initialize an empty string to store the concatenated parts
    var concatenatedString = ""

    // Use substring and plus assignment operator to concatenate the parts
    // Note: To make it difficult, specify substring indices that require careful analysis
    concatenatedString += name.substring(0, 3) + location.substring(4, location.length - 1) + age.toString().filterIndexed { index, _ -> index % 2 == 0 }

    // Return the concatenated string
    return concatenatedString
}
/**
 * This exercise requires the completion of a function that concatenates different parts of a person's information.
 *
 * The function should take in three parameters: name (a string), location (a string), and age (an integer).
 * The function should concatenate the name, location, and age together into a single string using substring and
 * the plus assignment operator. The function should return the resulting string.
 *
 * Example:
 *
 * name = "John Doe"
 * location = "New York"
 * age = 35
 *
 * concatenateStringParts(name, location, age) => "John DoeNew York35"
 */
fun concatenateStringParts(name: String, location: String, age: Int): String {
/**
 * This exercise requires the completion of a function that concatenates different parts of a person's information.
 *
 * The function should take in three parameters: name (a string), location (a string), and age (an integer).
 * The function should concatenate the name, location, and age together into a single string using substring and
 * the plus assignment operator. The function should return the resulting string.
 *
 * Example:
 *
 * name = "John Doe"
 * location = "New York"
 * age = 35
 *
 * concatenateStringParts(name, location, age) => "John DoeNew York35"
 */
fun concatenateStringParts(name: String, location: String, age: Int): String {

    // Initialize an empty string to store the concatenated parts
    var concatenatedString = ""

    // Use substring and plus assignment operator to concatenate the parts
    // Note: To make it difficult, specify substring indices that require careful analysis
    concatenatedString += name.substring(0, 3) + location.substring(4, location.length - 1) + age.toString().filterIndexed { index, _ -> index % 2 == 0 }

    // Return the concatenated string
    return concatenatedString
}