/**
 * Given a list of items and a negative index n, remove all items before index n (including the item at index n).
 * If n is positive or zero, the original list should be returned without any modification.
 *
 * @param n An integer representing a negative index
 * @param items A list of items
 * @return A list with items removed if n is negative, otherwise the original list
 *
 * Example:
 * removeItems(-3, listOf(1, 2, 3, 4, 5, 6)) -> [4, 5, 6]
 * removeItems(2, listOf(10, 20, 30, 40, 50)) -> [10, 20, 30, 40, 50]
 */
fun removeItems(n: Int, items: List<Int>): List<Int> {

    return if (n < 0) {
        items.subList(-n, items.size)
    } else {
        items
    }
}
/**
 * Given a list of items and a negative index n, remove all items before index n (including the item at index n).
 * If n is positive or zero, the original list should be returned without any modification.
 *
 * @param n An integer representing a negative index
 * @param items A list of items
 * @return A list with items removed if n is negative, otherwise the original list
 *
 * Example:
 * removeItems(-3, listOf(1, 2, 3, 4, 5, 6)) -> [4, 5, 6]
 * removeItems(2, listOf(10, 20, 30, 40, 50)) -> [10, 20, 30, 40, 50]
 */
fun removeItems(n: Int, items: List<Int>): List<Int> {
/**
 * Given a list of items and a negative index n, remove all items before index n (including the item at index n).
 * If n is positive or zero, the original list should be returned without any modification.
 *
 * @param n An integer representing a negative index
 * @param items A list of items
 * @return A list with items removed if n is negative, otherwise the original list
 *
 * Example:
 * removeItems(-3, listOf(1, 2, 3, 4, 5, 6)) -> [4, 5, 6]
 * removeItems(2, listOf(10, 20, 30, 40, 50)) -> [10, 20, 30, 40, 50]
 */
fun removeItems(n: Int, items: List<Int>): List<Int> {

    return if (n < 0) {
        items.subList(-n, items.size)
    } else {
        items
    }
}