/**
 * Given a list of tuples, each containing three integers, the function should return the count
 * of tuples that have at least one odd number in them. An empty tuple or a tuple with all even
 * numbers is not considered.
 *
 * @param tuplesList A list of tuples containing three integers each.
 * @return The count of tuples with at least one odd number.
 *
 * Example:
 * countOddTuples(listOf(Triple(2, 4, 6), Triple(1, 3, 7), Triple(4, 8, 12), Triple(9, 10, 15))) -> 3
 */
fun countOddTuples(tuplesList: List<Triple<Int, Int, Int>>): Int {

    var count = 0

    for (tpl in tuplesList) {
        if (tpl.toList().any { it % 2 != 0 }) {
            count++
        }
    }

    return count
}
/**
 * Given a list of tuples, each containing three integers, the function should return the count
 * of tuples that have at least one odd number in them. An empty tuple or a tuple with all even
 * numbers is not considered.
 *
 * @param tuplesList A list of tuples containing three integers each.
 * @return The count of tuples with at least one odd number.
 *
 * Example:
 * countOddTuples(listOf(Triple(2, 4, 6), Triple(1, 3, 7), Triple(4, 8, 12), Triple(9, 10, 15))) -> 3
 */
fun countOddTuples(tuplesList: List<Triple<Int, Int, Int>>): Int {
/**
 * Given a list of tuples, each containing three integers, the function should return the count
 * of tuples that have at least one odd number in them. An empty tuple or a tuple with all even
 * numbers is not considered.
 *
 * @param tuplesList A list of tuples containing three integers each.
 * @return The count of tuples with at least one odd number.
 *
 * Example:
 * countOddTuples(listOf(Triple(2, 4, 6), Triple(1, 3, 7), Triple(4, 8, 12), Triple(9, 10, 15))) -> 3
 */
fun countOddTuples(tuplesList: List<Triple<Int, Int, Int>>): Int {

    var count = 0

    for (tpl in tuplesList) {
        if (tpl.toList().any { it % 2 != 0 }) {
            count++
        }
    }

    return count
}