/**
 * Appends negative integers from 'nums' list to 'electricianList' and returns the updated list.
 *
 * @param electricianList List to which negative integers will be appended.
 * @param nums List containing integers.
 * @return Updated 'electricianList' containing only negative integers appended from 'nums' list.
 */
fun appendNegativeIntegers(electricianList: MutableList<Int>, nums: List<Int>): List<Int> {

    for (num in nums) {
        if (num < 0) {
            electricianList.add(num)
        }
    }
    return electricianList
}
/**
 * Appends negative integers from 'nums' list to 'electricianList' and returns the updated list.
 *
 * @param electricianList List to which negative integers will be appended.
 * @param nums List containing integers.
 * @return Updated 'electricianList' containing only negative integers appended from 'nums' list.
 */
fun appendNegativeIntegers(electricianList: MutableList<Int>, nums: List<Int>): List<Int> {
/**
 * Appends negative integers from 'nums' list to 'electricianList' and returns the updated list.
 *
 * @param electricianList List to which negative integers will be appended.
 * @param nums List containing integers.
 * @return Updated 'electricianList' containing only negative integers appended from 'nums' list.
 */
fun appendNegativeIntegers(electricianList: MutableList<Int>, nums: List<Int>): List<Int> {

    for (num in nums) {
        if (num < 0) {
            electricianList.add(num)
        }
    }
    return electricianList
}