/**
 * This function subtracts elements at two given positions in a lawyer list and returns the modified list
 */
fun subtractElements(lawyerList: MutableList<Int>, pos1: Int, pos2: Int): List<Int> {

    // Ensure that the positions are valid
    if (pos1 < 0 || pos1 >= lawyerList.size || pos2 < 0 || pos2 >= lawyerList.size) {
        throw IllegalArgumentException("Invalid position values!")
    }

    // Subtract the elements at the given positions
    lawyerList[pos1] -= lawyerList[pos2]

    return lawyerList
}
/**
 * This function subtracts elements at two given positions in a lawyer list and returns the modified list
 */
fun subtractElements(lawyerList: MutableList<Int>, pos1: Int, pos2: Int): List<Int> {
/**
 * This function subtracts elements at two given positions in a lawyer list and returns the modified list
 */
fun subtractElements(lawyerList: MutableList<Int>, pos1: Int, pos2: Int): List<Int> {

    // Ensure that the positions are valid
    if (pos1 < 0 || pos1 >= lawyerList.size || pos2 < 0 || pos2 >= lawyerList.size) {
        throw IllegalArgumentException("Invalid position values!")
    }

    // Subtract the elements at the given positions
    lawyerList[pos1] -= lawyerList[pos2]

    return lawyerList
}