/**
 * Given a list and a value, divide the list into two smaller lists based on whether elements are
 * greater than or equal to the value.
 */
fun divideListByValue(myList: List<Int>, value: Int): Pair<List<Int>, List<Int>> {

    val greaterThanList = mutableListOf<Int>()
    val lessThanList = mutableListOf<Int>()

    for (element in myList) {
        if (element >= value) {
            greaterThanList.add(element)
        } else {
            lessThanList.add(element)
        }
    }

    return Pair(greaterThanList, lessThanList)
}
/**
 * Given a list and a value, divide the list into two smaller lists based on whether elements are
 * greater than or equal to the value.
 */
fun divideListByValue(myList: List<Int>, value: Int): Pair<List<Int>, List<Int>> {
/**
 * Given a list and a value, divide the list into two smaller lists based on whether elements are
 * greater than or equal to the value.
 */
fun divideListByValue(myList: List<Int>, value: Int): Pair<List<Int>, List<Int>> {

    val greaterThanList = mutableListOf<Int>()
    val lessThanList = mutableListOf<Int>()

    for (element in myList) {
        if (element >= value) {
            greaterThanList.add(element)
        } else {
            lessThanList.add(element)
        }
    }

    return Pair(greaterThanList, lessThanList)
}