/**
 * This function takes a list of medications and their corresponding dosage and
 * returns a prescription string with the medications and their dosage.
 */
fun createPrescription(medications: List<String>, dosage: List<String>): String {

    var prescription = ""

    // Iterate through each medication in the list
    for (i in medications.indices) {
        // Repeat the medication name and dosage three times
        repeat(3) {
            prescription += "${medications[i]} ${dosage[i]}\n"
        }
    }

    return prescription
}
/**
 * This function takes a list of medications and their corresponding dosage and
 * returns a prescription string with the medications and their dosage.
 */
fun createPrescription(medications: List<String>, dosage: List<String>): String {
/**
 * This function takes a list of medications and their corresponding dosage and
 * returns a prescription string with the medications and their dosage.
 */
fun createPrescription(medications: List<String>, dosage: List<String>): String {

    var prescription = ""

    // Iterate through each medication in the list
    for (i in medications.indices) {
        // Repeat the medication name and dosage three times
        repeat(3) {
            prescription += "${medications[i]} ${dosage[i]}\n"
        }
    }

    return prescription
}