/**
 * This exercise is about looping through a list of tuples and counting the number of vowels in each string.
 * The input parameter 'stringTuple' is a list of tuples containing strings.
 * Your task is to write a Kotlin code that counts the number of vowels in each string and returns a list of the counts.
 * Note: This exercise assumes that the input is properly formatted and contains only lowercase alphabets.
 *
 * Example:
 * For the input ['tuple', 'string', 'example'], the output should be [2, 1, 3].
 */
fun countVowelsInTuple(stringTuple: List<String>): List<Int> {

    val vowelCounts = mutableListOf<Int>()
    
    // Loop through the input tuple
    for (string in stringTuple) {
        var count = 0
        
        // Loop through each character in the current string
        for (char in string) {
            if (char in listOf('a', 'e', 'i', 'o', 'u')) {
                count++
            }
        }
        
        vowelCounts.add(count)
    }
    
    return vowelCounts
}
/**
 * This exercise is about looping through a list of tuples and counting the number of vowels in each string.
 * The input parameter 'stringTuple' is a list of tuples containing strings.
 * Your task is to write a Kotlin code that counts the number of vowels in each string and returns a list of the counts.
 * Note: This exercise assumes that the input is properly formatted and contains only lowercase alphabets.
 *
 * Example:
 * For the input ['tuple', 'string', 'example'], the output should be [2, 1, 3].
 */
fun countVowelsInTuple(stringTuple: List<String>): List<Int> {
/**
 * This exercise is about looping through a list of tuples and counting the number of vowels in each string.
 * The input parameter 'stringTuple' is a list of tuples containing strings.
 * Your task is to write a Kotlin code that counts the number of vowels in each string and returns a list of the counts.
 * Note: This exercise assumes that the input is properly formatted and contains only lowercase alphabets.
 *
 * Example:
 * For the input ['tuple', 'string', 'example'], the output should be [2, 1, 3].
 */
fun countVowelsInTuple(stringTuple: List<String>): List<Int> {

    val vowelCounts = mutableListOf<Int>()
    
    // Loop through the input tuple
    for (string in stringTuple) {
        var count = 0
        
        // Loop through each character in the current string
        for (char in string) {
            if (char in listOf('a', 'e', 'i', 'o', 'u')) {
                count++
            }
        }
        
        vowelCounts.add(count)
    }
    
    return vowelCounts
}