/**
 * This function assigns a set of exercises to a physical therapist's patient based on the level of injury and the number of sessions completed.
 */
fun assignExercise(level: String?, injuryType: String?, numSessions: Int): String {

    val patientLevel = level ?: "Unknown"
    val patientInjury = injuryType ?: "Unknown"
    val exerciseSet = when {
        numSessions >= 10 -> "Advanced"
        numSessions >= 5 -> "Intermediate"
        else -> "Beginner"
    }
    
    return "Patient level: $patientLevel\nPatient injury: $patientInjury\nAssigned exercise set: $exerciseSet"
}
/**
 * This function assigns a set of exercises to a physical therapist's patient based on the level of injury and the number of sessions completed.
 */
fun assignExercise(level: String?, injuryType: String?, numSessions: Int): String {
/**
 * This function assigns a set of exercises to a physical therapist's patient based on the level of injury and the number of sessions completed.
 */
fun assignExercise(level: String?, injuryType: String?, numSessions: Int): String {

    val patientLevel = level ?: "Unknown"
    val patientInjury = injuryType ?: "Unknown"
    val exerciseSet = when {
        numSessions >= 10 -> "Advanced"
        numSessions >= 5 -> "Intermediate"
        else -> "Beginner"
    }
    
    return "Patient level: $patientLevel\nPatient injury: $patientInjury\nAssigned exercise set: $exerciseSet"
}