/**
 * This function takes an artist name as input and returns a Pair containing the number of characters in the artist's name
 * and a list of unique characters from the name.
 *
 * @param artist The name of the artist.
 * @return A Pair containing the number of characters in the artist's name and a list of unique characters from the name.
 *
 * Example:
 * createTuple("Picasso") -> Pair(7, listOf('P', 'i', 'c', 'a', 's', 'o'))
 */
fun createTuple(artist: String): Pair<Int, List<Char>> {

    // Indexing the artist's name
    val numChars = artist.length  // Number of characters in the artist's name

    val uniqueChars = mutableListOf<Char>()  // List to store unique characters from the name
    for (char in artist) {  // Iterate over each character in the name
        if (!uniqueChars.contains(char)) {  // Check if the character is unique
            uniqueChars.add(char)  // Add the character to the list
        }
    }

    return Pair(numChars, uniqueChars)
}
/**
 * This function takes an artist name as input and returns a Pair containing the number of characters in the artist's name
 * and a list of unique characters from the name.
 *
 * @param artist The name of the artist.
 * @return A Pair containing the number of characters in the artist's name and a list of unique characters from the name.
 *
 * Example:
 * createTuple("Picasso") -> Pair(7, listOf('P', 'i', 'c', 'a', 's', 'o'))
 */
fun createTuple(artist: String): Pair<Int, List<Char>> {
/**
 * This function takes an artist name as input and returns a Pair containing the number of characters in the artist's name
 * and a list of unique characters from the name.
 *
 * @param artist The name of the artist.
 * @return A Pair containing the number of characters in the artist's name and a list of unique characters from the name.
 *
 * Example:
 * createTuple("Picasso") -> Pair(7, listOf('P', 'i', 'c', 'a', 's', 'o'))
 */
fun createTuple(artist: String): Pair<Int, List<Char>> {

    // Indexing the artist's name
    val numChars = artist.length  // Number of characters in the artist's name

    val uniqueChars = mutableListOf<Char>()  // List to store unique characters from the name
    for (char in artist) {  // Iterate over each character in the name
        if (!uniqueChars.contains(char)) {  // Check if the character is unique
            uniqueChars.add(char)  // Add the character to the list
        }
    }

    return Pair(numChars, uniqueChars)
}