/**
 * This function removes elements from a list based on a given condition.
 *
 * @param physicianList A list of physician names.
 * @param condition The condition to be satisfied for removal.
 * @return The modified list after removing elements.
 */
fun removeElements(physicianList: MutableList<String>, condition: Boolean): List<String> {

    var i = 0
    while (i < physicianList.size) {
        if (!physicianList[i].contains("Dr.")) {
            if (condition) {
                physicianList.removeAt(i)
                continue
            }
        }
        i++
    }
    return physicianList
}
/**
 * This function removes elements from a list based on a given condition.
 *
 * @param physicianList A list of physician names.
 * @param condition The condition to be satisfied for removal.
 * @return The modified list after removing elements.
 */
fun removeElements(physicianList: MutableList<String>, condition: Boolean): List<String> {
/**
 * This function removes elements from a list based on a given condition.
 *
 * @param physicianList A list of physician names.
 * @param condition The condition to be satisfied for removal.
 * @return The modified list after removing elements.
 */
fun removeElements(physicianList: MutableList<String>, condition: Boolean): List<String> {

    var i = 0
    while (i < physicianList.size) {
        if (!physicianList[i].contains("Dr.")) {
            if (condition) {
                physicianList.removeAt(i)
                continue
            }
        }
        i++
    }
    return physicianList
}