/**
 * This function takes a list of data, as well as two boolean conditions, and returns a filtered list based on
 * the intersection of the conditions using the OR operator.
 *
 * @param data The list of data to be filtered.
 * @param condition1 The first boolean condition.
 * @param condition2 The second boolean condition.
 * @return The filtered list based on the intersection of the conditions.
 *
 * Example:
 * '``
 * val data = listOf(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
 * val condition1 = true
 * val condition2 = false
 * println(filterData(data, condition1, condition2)) // [1, 3, 5, 7, 9]
 * '``
 */
fun filterData(data: List<Int>, condition1: Boolean, condition2: Boolean): List<Int> {

    val filteredList = mutableListOf<Int>()

    for (item in data) {
        if (condition1 || condition2) {
            filteredList.add(item)
        }
    }

    return filteredList
}
/**
 * This function takes a list of data, as well as two boolean conditions, and returns a filtered list based on
 * the intersection of the conditions using the OR operator.
 *
 * @param data The list of data to be filtered.
 * @param condition1 The first boolean condition.
 * @param condition2 The second boolean condition.
 * @return The filtered list based on the intersection of the conditions.
 *
 * Example:
 * '``
 * val data = listOf(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
 * val condition1 = true
 * val condition2 = false
 * println(filterData(data, condition1, condition2)) // [1, 3, 5, 7, 9]
 * '``
 */
fun filterData(data: List<Int>, condition1: Boolean, condition2: Boolean): List<Int> {
/**
 * This function takes a list of data, as well as two boolean conditions, and returns a filtered list based on
 * the intersection of the conditions using the OR operator.
 *
 * @param data The list of data to be filtered.
 * @param condition1 The first boolean condition.
 * @param condition2 The second boolean condition.
 * @return The filtered list based on the intersection of the conditions.
 *
 * Example:
 * '``
 * val data = listOf(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
 * val condition1 = true
 * val condition2 = false
 * println(filterData(data, condition1, condition2)) // [1, 3, 5, 7, 9]
 * '``
 */
fun filterData(data: List<Int>, condition1: Boolean, condition2: Boolean): List<Int> {

    val filteredList = mutableListOf<Int>()

    for (item in data) {
        if (condition1 || condition2) {
            filteredList.add(item)
        }
    }

    return filteredList
}