/**
 * This function takes a list of names and a number (numTimes) and prints each name numTimes times.
 * If the name is null, the function should skip that iteration.
 *
 * @param names A list of names
 * @param numTimes The number of times each name should be printed
 */
fun printMultipleTimes(names: List<String?>, numTimes: Int) {

    for (name in names) {  // Loop through each name in the list
        if (name == null) {  // Skip iteration if name is null
            continue
        }
        
        repeat(numTimes) {  // Execute the block of code numTimes for each name
            println(name)
        }
    }
}
/**
 * This function takes a list of names and a number (numTimes) and prints each name numTimes times.
 * If the name is null, the function should skip that iteration.
 *
 * @param names A list of names
 * @param numTimes The number of times each name should be printed
 */
fun printMultipleTimes(names: List<String?>, numTimes: Int) {
/**
 * This function takes a list of names and a number (numTimes) and prints each name numTimes times.
 * If the name is null, the function should skip that iteration.
 *
 * @param names A list of names
 * @param numTimes The number of times each name should be printed
 */
fun printMultipleTimes(names: List<String?>, numTimes: Int) {

    for (name in names) {  // Loop through each name in the list
        if (name == null) {  // Skip iteration if name is null
            continue
        }
        
        repeat(numTimes) {  // Execute the block of code numTimes for each name
            println(name)
        }
    }
}