/**
 * In a game, the findEnemy function takes in two lists: enemyList and playerList.
 * The function is supposed to return a new list containing only the names of enemies that are not present in the playerList.
 * However, the implementation is incomplete and you need to fill in the missing code using basic for loop and the 'in' operator to complete the task.
 *
 * @param enemyList A list containing the names of enemies (strings).
 * @param playerList A list containing the names of players (strings).
 * @return A list containing only the names of enemies that are not present in the playerList.
 *
 * Example:
 * findEnemy(listOf("Goblin", "Orc", "Dragon"), listOf("Goblin", "Elf", "Human")) ➞ ["Orc", "Dragon"]
 */
fun findEnemy(enemyList: List<String>, playerList: List<String>): List<String> {

    val result = mutableListOf<String>()
    for (enemy in enemyList) {
        if (enemy !in playerList) {
            result.add(enemy)
        }
    }
    return result
}
/**
 * In a game, the findEnemy function takes in two lists: enemyList and playerList.
 * The function is supposed to return a new list containing only the names of enemies that are not present in the playerList.
 * However, the implementation is incomplete and you need to fill in the missing code using basic for loop and the 'in' operator to complete the task.
 *
 * @param enemyList A list containing the names of enemies (strings).
 * @param playerList A list containing the names of players (strings).
 * @return A list containing only the names of enemies that are not present in the playerList.
 *
 * Example:
 * findEnemy(listOf("Goblin", "Orc", "Dragon"), listOf("Goblin", "Elf", "Human")) ➞ ["Orc", "Dragon"]
 */
fun findEnemy(enemyList: List<String>, playerList: List<String>): List<String> {
/**
 * In a game, the findEnemy function takes in two lists: enemyList and playerList.
 * The function is supposed to return a new list containing only the names of enemies that are not present in the playerList.
 * However, the implementation is incomplete and you need to fill in the missing code using basic for loop and the 'in' operator to complete the task.
 *
 * @param enemyList A list containing the names of enemies (strings).
 * @param playerList A list containing the names of players (strings).
 * @return A list containing only the names of enemies that are not present in the playerList.
 *
 * Example:
 * findEnemy(listOf("Goblin", "Orc", "Dragon"), listOf("Goblin", "Elf", "Human")) ➞ ["Orc", "Dragon"]
 */
fun findEnemy(enemyList: List<String>, playerList: List<String>): List<String> {

    val result = mutableListOf<String>()
    for (enemy in enemyList) {
        if (enemy !in playerList) {
            result.add(enemy)
        }
    }
    return result
}