/**
 * This exercise requires the psychologist to concatenate each patient's name with a specific phrase using a for loop.
 *
 * @param psychologistName The name of the psychologist.
 * @param patientNames A list of patient names.
 * @return A list of strings, where each string is the concatenation of the psychologist's name and one patient's name.
 *
 * Example:
 * If psychologistName is "Dr. Smith" and patientNames is ["John", "Jane", "Michael"], the function should return ["Dr. Smith loves John", "Dr. Smith loves Jane", "Dr. Smith loves Michael"].
 */
fun concatForLoop(psychologistName: String, patientNames: List<String>): List<String> {

    val result = mutableListOf<String>()

    for (patientName in patientNames) {
        result.add("$psychologistName loves $patientName")
    }

    return result
}
/**
 * This exercise requires the psychologist to concatenate each patient's name with a specific phrase using a for loop.
 *
 * @param psychologistName The name of the psychologist.
 * @param patientNames A list of patient names.
 * @return A list of strings, where each string is the concatenation of the psychologist's name and one patient's name.
 *
 * Example:
 * If psychologistName is "Dr. Smith" and patientNames is ["John", "Jane", "Michael"], the function should return ["Dr. Smith loves John", "Dr. Smith loves Jane", "Dr. Smith loves Michael"].
 */
fun concatForLoop(psychologistName: String, patientNames: List<String>): List<String> {
/**
 * This exercise requires the psychologist to concatenate each patient's name with a specific phrase using a for loop.
 *
 * @param psychologistName The name of the psychologist.
 * @param patientNames A list of patient names.
 * @return A list of strings, where each string is the concatenation of the psychologist's name and one patient's name.
 *
 * Example:
 * If psychologistName is "Dr. Smith" and patientNames is ["John", "Jane", "Michael"], the function should return ["Dr. Smith loves John", "Dr. Smith loves Jane", "Dr. Smith loves Michael"].
 */
fun concatForLoop(psychologistName: String, patientNames: List<String>): List<String> {

    val result = mutableListOf<String>()

    for (patientName in patientNames) {
        result.add("$psychologistName loves $patientName")
    }

    return result
}