/**
 * Given a list of first names and last names, return a list of full names in the format 'last_name, first_name'.
 */
fun mergeNames(firstNames: List<String>, lastNames: List<String>): List<String> {

    // Using zip and map to create a list of full names
    return lastNames.zip(firstNames).map { "${it.first}, ${it.second}" }
}
/**
 * Given a list of first names and last names, return a list of full names in the format 'last_name, first_name'.
 */
fun mergeNames(firstNames: List<String>, lastNames: List<String>): List<String> {
/**
 * Given a list of first names and last names, return a list of full names in the format 'last_name, first_name'.
 */
fun mergeNames(firstNames: List<String>, lastNames: List<String>): List<String> {

    // Using zip and map to create a list of full names
    return lastNames.zip(firstNames).map { "${it.first}, ${it.second}" }
}