/**
 * Given a list of dancers and their corresponding temperatures, return a new list
 * containing the names of dancers who are hot (temperature above 35).
 *
 * @param dancers A list of dancer names.
 * @param temperatures A list of corresponding temperatures of each dancer.
 * @return A list of names of hot dancers.
 *
 * Example:
 * getHotDancers(listOf("Dancer A", "Dancer B", "Dancer C"), listOf(32, 38, 30))
 * Output: ["Dancer B"]
 */
fun getHotDancers(dancers: List<String>, temperatures: List<Int>): List<String> {

    val hotDancers = mutableListOf<String>()
    for (i in dancers.indices) {
        if (temperatures[i] > 35) {
            hotDancers.add(dancers[i])
        }
    }
    return hotDancers
}
/**
 * Given a list of dancers and their corresponding temperatures, return a new list
 * containing the names of dancers who are hot (temperature above 35).
 *
 * @param dancers A list of dancer names.
 * @param temperatures A list of corresponding temperatures of each dancer.
 * @return A list of names of hot dancers.
 *
 * Example:
 * getHotDancers(listOf("Dancer A", "Dancer B", "Dancer C"), listOf(32, 38, 30))
 * Output: ["Dancer B"]
 */
fun getHotDancers(dancers: List<String>, temperatures: List<Int>): List<String> {
/**
 * Given a list of dancers and their corresponding temperatures, return a new list
 * containing the names of dancers who are hot (temperature above 35).
 *
 * @param dancers A list of dancer names.
 * @param temperatures A list of corresponding temperatures of each dancer.
 * @return A list of names of hot dancers.
 *
 * Example:
 * getHotDancers(listOf("Dancer A", "Dancer B", "Dancer C"), listOf(32, 38, 30))
 * Output: ["Dancer B"]
 */
fun getHotDancers(dancers: List<String>, temperatures: List<Int>): List<String> {

    val hotDancers = mutableListOf<String>()
    for (i in dancers.indices) {
        if (temperatures[i] > 35) {
            hotDancers.add(dancers[i])
        }
    }
    return hotDancers
}