/**
 * This exercise requires you to create a tuple of even numbers within a given range, with some conditions.
 *
 * @param minVal the minimum value of the range (inclusive)
 * @param maxVal the maximum value of the range (inclusive)
 * @return A tuple containing even numbers within the given range (inclusive) using the built-in functions.
 *
 * Instructions:
 * - Create a tuple by using a single line of code.
 * - The tuple should contain even numbers only.
 * - Each number in the tuple should be the square of a number in the given range.
 * - The square of each number should be divisible by 4.
 * - Do not use any loops or conditional statements. Instead, utilize built-in functions to produce the desired output.
 * - The resulting tuple should be sorted in ascending order.
 *
 * Example:
 * createPoliceTup(1, 10) -> Returns (4, 16, 36, 64, 100)
 * createPoliceTup(20, 30) -> Returns (324, 400)
 */
fun createPoliceTup(minVal: Int, maxVal: Int): List<Int> =
    (minVal..maxVal)
        .map {
 it * it }
        .filter { it % 4 == 0 && it % 2 == 0 }
        .sorted()
/**
 * This exercise requires you to create a tuple of even numbers within a given range, with some conditions.
 *
 * @param minVal the minimum value of the range (inclusive)
 * @param maxVal the maximum value of the range (inclusive)
 * @return A tuple containing even numbers within the given range (inclusive) using the built-in functions.
 *
 * Instructions:
 * - Create a tuple by using a single line of code.
 * - The tuple should contain even numbers only.
 * - Each number in the tuple should be the square of a number in the given range.
 * - The square of each number should be divisible by 4.
 * - Do not use any loops or conditional statements. Instead, utilize built-in functions to produce the desired output.
 * - The resulting tuple should be sorted in ascending order.
 *
 * Example:
 * createPoliceTup(1, 10) -> Returns (4, 16, 36, 64, 100)
 * createPoliceTup(20, 30) -> Returns (324, 400)
 */
fun createPoliceTup(minVal: Int, maxVal: Int): List<Int> =
    (minVal..maxVal)
        .map {
/**
 * This exercise requires you to create a tuple of even numbers within a given range, with some conditions.
 *
 * @param minVal the minimum value of the range (inclusive)
 * @param maxVal the maximum value of the range (inclusive)
 * @return A tuple containing even numbers within the given range (inclusive) using the built-in functions.
 *
 * Instructions:
 * - Create a tuple by using a single line of code.
 * - The tuple should contain even numbers only.
 * - Each number in the tuple should be the square of a number in the given range.
 * - The square of each number should be divisible by 4.
 * - Do not use any loops or conditional statements. Instead, utilize built-in functions to produce the desired output.
 * - The resulting tuple should be sorted in ascending order.
 *
 * Example:
 * createPoliceTup(1, 10) -> Returns (4, 16, 36, 64, 100)
 * createPoliceTup(20, 30) -> Returns (324, 400)
 */
fun createPoliceTup(minVal: Int, maxVal: Int): List<Int> =
    (minVal..maxVal)
        .map {
 it * it }
        .filter { it % 4 == 0 && it % 2 == 0 }
        .sorted()