/**
 * This function takes a list of elements and an integer 'n' as input and modifies the list by replacing elements with their modulus 'n'.
 *
 * @param elements List of elements
 * @param n Integer value
 * @return Modified list with elements replaced by their modulus 'n'
 */
fun modifyList(elements: List<Int>, n: Int): List<Int> {

    return elements.map { it % n }
}

// Example Usage
/**
 * This function takes a list of elements and an integer 'n' as input and modifies the list by replacing elements with their modulus 'n'.
 *
 * @param elements List of elements
 * @param n Integer value
 * @return Modified list with elements replaced by their modulus 'n'
 */
fun modifyList(elements: List<Int>, n: Int): List<Int> {
/**
 * This function takes a list of elements and an integer 'n' as input and modifies the list by replacing elements with their modulus 'n'.
 *
 * @param elements List of elements
 * @param n Integer value
 * @return Modified list with elements replaced by their modulus 'n'
 */
fun modifyList(elements: List<Int>, n: Int): List<Int> {

    return elements.map { it % n }
}

// Example Usage