/**
 * This exercise focuses on the usage of 'else statements' and 'concatenation' for a Lawyer.
 * The task is to check if a person is eligible to practice law based on their age and profession.
 * If the person is of legal age (above 21) and their profession is lawyer, then return a concatenated
 * string welcoming them to the legal profession. Otherwise, return a concatenated string stating
 * the ineligibility.
 */
fun concatenateStatements(name: String, age: Int, profession: String): String {

    return if (age > 21 && profession == "Lawyer") {
        "Congratulations $name! Welcome to the legal profession."
    } else {
        "Sorry $name, you are not eligible to practice law."
    }
}
/**
 * This exercise focuses on the usage of 'else statements' and 'concatenation' for a Lawyer.
 * The task is to check if a person is eligible to practice law based on their age and profession.
 * If the person is of legal age (above 21) and their profession is lawyer, then return a concatenated
 * string welcoming them to the legal profession. Otherwise, return a concatenated string stating
 * the ineligibility.
 */
fun concatenateStatements(name: String, age: Int, profession: String): String {
/**
 * This exercise focuses on the usage of 'else statements' and 'concatenation' for a Lawyer.
 * The task is to check if a person is eligible to practice law based on their age and profession.
 * If the person is of legal age (above 21) and their profession is lawyer, then return a concatenated
 * string welcoming them to the legal profession. Otherwise, return a concatenated string stating
 * the ineligibility.
 */
fun concatenateStatements(name: String, age: Int, profession: String): String {

    return if (age > 21 && profession == "Lawyer") {
        "Congratulations $name! Welcome to the legal profession."
    } else {
        "Sorry $name, you are not eligible to practice law."
    }
}