/**
 * A nurse wants to grade a group of students based on their test scores.
 * The students are represented as a map, where the keys are the names of the students and the values are their test scores.
 * The nurse wants to assign a grade of 'Pass' or 'Fail' to each student based on whether their test score is above or below the cutoff score.
 *
 * @param students A map containing the students' names as keys and their test scores as values.
 * @param cutoff The minimum score required to pass the test.
 * @return A map containing the names of the students as keys and their grades ('Pass' or 'Fail') as values.
 */
fun gradeStudents(students: Map<String, Int>, cutoff: Int): Map<String, String> {

    // Initialize an empty map to store the grades
    val grades = mutableMapOf<String, String>()

    // Iterate over each student and their score
    for ((student, score) in students) {
        // Check if the score is above or equal to the cutoff
        grades[student] = if (score >= cutoff) "Pass" else "Fail"
    }

    return grades
}
/**
 * A nurse wants to grade a group of students based on their test scores.
 * The students are represented as a map, where the keys are the names of the students and the values are their test scores.
 * The nurse wants to assign a grade of 'Pass' or 'Fail' to each student based on whether their test score is above or below the cutoff score.
 *
 * @param students A map containing the students' names as keys and their test scores as values.
 * @param cutoff The minimum score required to pass the test.
 * @return A map containing the names of the students as keys and their grades ('Pass' or 'Fail') as values.
 */
fun gradeStudents(students: Map<String, Int>, cutoff: Int): Map<String, String> {
/**
 * A nurse wants to grade a group of students based on their test scores.
 * The students are represented as a map, where the keys are the names of the students and the values are their test scores.
 * The nurse wants to assign a grade of 'Pass' or 'Fail' to each student based on whether their test score is above or below the cutoff score.
 *
 * @param students A map containing the students' names as keys and their test scores as values.
 * @param cutoff The minimum score required to pass the test.
 * @return A map containing the names of the students as keys and their grades ('Pass' or 'Fail') as values.
 */
fun gradeStudents(students: Map<String, Int>, cutoff: Int): Map<String, String> {

    // Initialize an empty map to store the grades
    val grades = mutableMapOf<String, String>()

    // Iterate over each student and their score
    for ((student, score) in students) {
        // Check if the score is above or equal to the cutoff
        grades[student] = if (score >= cutoff) "Pass" else "Fail"
    }

    return grades
}