/**
 * You are a game developer working on a top-down shooter game. In this game, you need to find the position of an enemy based on a given enemy list. Each element in the enemy list represents the enemy's position as [x, y] coordinates. Implement a function that takes in the enemy list as input and returns the position of the enemy.
 *
 * @param enemyList A list of enemy positions in the form of [x, y] coordinate pairs.
 * @return The position of the enemy in the form of [x, y] coordinates.
 */
fun findEnemyPosition(enemyList: List<Pair<Int, Int>>): Pair<Int, Int>? {

    var enemyPosition: Pair<Int, Int>? = null
    var index = 0

    while (index < enemyList.size) {
        val position = enemyList[index]

        if (position.first in 50..100 && position.second in 50..100) {
            enemyPosition = position
            break
        }

        index++
    }

    return enemyPosition
}
/**
 * You are a game developer working on a top-down shooter game. In this game, you need to find the position of an enemy based on a given enemy list. Each element in the enemy list represents the enemy's position as [x, y] coordinates. Implement a function that takes in the enemy list as input and returns the position of the enemy.
 *
 * @param enemyList A list of enemy positions in the form of [x, y] coordinate pairs.
 * @return The position of the enemy in the form of [x, y] coordinates.
 */
fun findEnemyPosition(enemyList: List<Pair<Int, Int>>): Pair<Int, Int>? {
/**
 * You are a game developer working on a top-down shooter game. In this game, you need to find the position of an enemy based on a given enemy list. Each element in the enemy list represents the enemy's position as [x, y] coordinates. Implement a function that takes in the enemy list as input and returns the position of the enemy.
 *
 * @param enemyList A list of enemy positions in the form of [x, y] coordinate pairs.
 * @return The position of the enemy in the form of [x, y] coordinates.
 */
fun findEnemyPosition(enemyList: List<Pair<Int, Int>>): Pair<Int, Int>? {

    var enemyPosition: Pair<Int, Int>? = null
    var index = 0

    while (index < enemyList.size) {
        val position = enemyList[index]

        if (position.first in 50..100 && position.second in 50..100) {
            enemyPosition = position
            break
        }

        index++
    }

    return enemyPosition
}