/**
 * Given a list of engineers' names, returns a pair with the names of engineers
 * whose names have more than 5 characters and the names of engineers
 * whose names have less than or equal to 5 characters.
 *
 * @param engineers List of engineers' names as strings.
 * @return Pair containing two lists. The first list contains the engineers' names
 * with more than 5 characters, and the second list contains the engineers' names
 * with less than or equal to 5 characters.
 */
fun findEngineers(engineers: List<String>): Pair<List<String>, List<String>> {

    val longNames = mutableListOf<String>()
    val shortNames = mutableListOf<String>()

    for (engineer in engineers) {
        if (engineer.length > 5) {
            longNames.add(engineer)
        } else {
            shortNames.add(engineer)
        }
    }

    return Pair(longNames, shortNames)
}
/**
 * Given a list of engineers' names, returns a pair with the names of engineers
 * whose names have more than 5 characters and the names of engineers
 * whose names have less than or equal to 5 characters.
 *
 * @param engineers List of engineers' names as strings.
 * @return Pair containing two lists. The first list contains the engineers' names
 * with more than 5 characters, and the second list contains the engineers' names
 * with less than or equal to 5 characters.
 */
fun findEngineers(engineers: List<String>): Pair<List<String>, List<String>> {
/**
 * Given a list of engineers' names, returns a pair with the names of engineers
 * whose names have more than 5 characters and the names of engineers
 * whose names have less than or equal to 5 characters.
 *
 * @param engineers List of engineers' names as strings.
 * @return Pair containing two lists. The first list contains the engineers' names
 * with more than 5 characters, and the second list contains the engineers' names
 * with less than or equal to 5 characters.
 */
fun findEngineers(engineers: List<String>): Pair<List<String>, List<String>> {

    val longNames = mutableListOf<String>()
    val shortNames = mutableListOf<String>()

    for (engineer in engineers) {
        if (engineer.length > 5) {
            longNames.add(engineer)
        } else {
            shortNames.add(engineer)
        }
    }

    return Pair(longNames, shortNames)
}