/**
 * Given a list of nested tuples, where each nested tuple contains a string and an integer,
 * extract and return a list of indices for tuples that have an odd number as the integer value.
 *
 * @param nestedTuples A list of nested tuples.
 * @return A list of indices for tuples with odd number integer values.
 */
fun extractIndices(nestedTuples: List<Pair<String, Int>>): List<Int> {

    val oddIndices = nestedTuples.mapIndexedNotNull { index, tpl ->
        if (tpl.second % 2 != 0) {
            index
        } else {
            null
        }
    }
    return oddIndices
}
/**
 * Given a list of nested tuples, where each nested tuple contains a string and an integer,
 * extract and return a list of indices for tuples that have an odd number as the integer value.
 *
 * @param nestedTuples A list of nested tuples.
 * @return A list of indices for tuples with odd number integer values.
 */
fun extractIndices(nestedTuples: List<Pair<String, Int>>): List<Int> {
/**
 * Given a list of nested tuples, where each nested tuple contains a string and an integer,
 * extract and return a list of indices for tuples that have an odd number as the integer value.
 *
 * @param nestedTuples A list of nested tuples.
 * @return A list of indices for tuples with odd number integer values.
 */
fun extractIndices(nestedTuples: List<Pair<String, Int>>): List<Int> {

    val oddIndices = nestedTuples.mapIndexedNotNull { index, tpl ->
        if (tpl.second % 2 != 0) {
            index
        } else {
            null
        }
    }
    return oddIndices
}