/**
 * As an astronomer, I want to find the intersection of two lists containing celestial objects.
 * This function takes in two lists as arguments and returns a new list that contains only the objects
 * that are present in both lists.
 */
fun intersectionOfLists(list1: List<String>, list2: List<String>): List<String> {

    // Convert lists to sets for faster set operations
    val set1 = list1.toSet()
    val set2 = list2.toSet()

    // Find the intersection of the two sets
    val intersection = set1.intersect(set2)

    // Convert the intersection set back to a list
    val intersectionList = intersection.toList()

    return intersectionList
}
/**
 * As an astronomer, I want to find the intersection of two lists containing celestial objects.
 * This function takes in two lists as arguments and returns a new list that contains only the objects
 * that are present in both lists.
 */
fun intersectionOfLists(list1: List<String>, list2: List<String>): List<String> {
/**
 * As an astronomer, I want to find the intersection of two lists containing celestial objects.
 * This function takes in two lists as arguments and returns a new list that contains only the objects
 * that are present in both lists.
 */
fun intersectionOfLists(list1: List<String>, list2: List<String>): List<String> {

    // Convert lists to sets for faster set operations
    val set1 = list1.toSet()
    val set2 = list2.toSet()

    // Find the intersection of the two sets
    val intersection = set1.intersect(set2)

    // Convert the intersection set back to a list
    val intersectionList = intersection.toList()

    return intersectionList
}