/**
 * This exercise requires creating a tuple for a police officer with a given range of values.
 * The intersection with the complement operator makes it more difficult.
 *
 * @param start the start of the range (inclusive)
 * @param end the end of the range (exclusive)
 * @return A tuple containing police officer information with values between start and end, except for any odd numbers.
 *
 * Example:
 * createPoliceOfficerTuples(1, 10) => ('Name2', 4, 'Rank6', 8)
 *
 * Note:
 * In the example above, the numbers 1, 3, 5, 7, and 9 are skipped due to the complement operator.
 */
fun createPoliceOfficerTuples(start: Int, end: Int): List<Any> {

    val officerInfo = listOf("Name", "Rank", "Age")

    // Apply complement operator on range to skip odd numbers
    val officerTuple = (start until end).filter { it % 2 == 0 }.map { officerInfo[it % officerInfo.size] }

    return officerTuple
}
/**
 * This exercise requires creating a tuple for a police officer with a given range of values.
 * The intersection with the complement operator makes it more difficult.
 *
 * @param start the start of the range (inclusive)
 * @param end the end of the range (exclusive)
 * @return A tuple containing police officer information with values between start and end, except for any odd numbers.
 *
 * Example:
 * createPoliceOfficerTuples(1, 10) => ('Name2', 4, 'Rank6', 8)
 *
 * Note:
 * In the example above, the numbers 1, 3, 5, 7, and 9 are skipped due to the complement operator.
 */
fun createPoliceOfficerTuples(start: Int, end: Int): List<Any> {
/**
 * This exercise requires creating a tuple for a police officer with a given range of values.
 * The intersection with the complement operator makes it more difficult.
 *
 * @param start the start of the range (inclusive)
 * @param end the end of the range (exclusive)
 * @return A tuple containing police officer information with values between start and end, except for any odd numbers.
 *
 * Example:
 * createPoliceOfficerTuples(1, 10) => ('Name2', 4, 'Rank6', 8)
 *
 * Note:
 * In the example above, the numbers 1, 3, 5, 7, and 9 are skipped due to the complement operator.
 */
fun createPoliceOfficerTuples(start: Int, end: Int): List<Any> {

    val officerInfo = listOf("Name", "Rank", "Age")

    // Apply complement operator on range to skip odd numbers
    val officerTuple = (start until end).filter { it % 2 == 0 }.map { officerInfo[it % officerInfo.size] }

    return officerTuple
}