/**
 * This function receives a list of musicians and a list of instruments. It should return a list containing all possible combinations of musicians and instruments using nested while loops.
 */
fun countNotes(musicians: List<String>, instruments: List<String>): List<Pair<String, String>> {

    val combinations = mutableListOf<Pair<String, String>>()
    var musicianIndex = 0

    while (musicianIndex < musicians.size) {
        var instrumentIndex = 0

        while (instrumentIndex < instruments.size) {
            val combination = Pair(musicians[musicianIndex], instruments[instrumentIndex])
            combinations.add(combination)
            instrumentIndex++
        }

        musicianIndex++
    }

    return combinations
}

// Example usage
/**
 * This function receives a list of musicians and a list of instruments. It should return a list containing all possible combinations of musicians and instruments using nested while loops.
 */
fun countNotes(musicians: List<String>, instruments: List<String>): List<Pair<String, String>> {
/**
 * This function receives a list of musicians and a list of instruments. It should return a list containing all possible combinations of musicians and instruments using nested while loops.
 */
fun countNotes(musicians: List<String>, instruments: List<String>): List<Pair<String, String>> {

    val combinations = mutableListOf<Pair<String, String>>()
    var musicianIndex = 0

    while (musicianIndex < musicians.size) {
        var instrumentIndex = 0

        while (instrumentIndex < instruments.size) {
            val combination = Pair(musicians[musicianIndex], instruments[instrumentIndex])
            combinations.add(combination)
            instrumentIndex++
        }

        musicianIndex++
    }

    return combinations
}

// Example usage