/**
 * Given a list of landmarks and a list of regions,
 * this function returns a list of all the landmarks that are present in the regions.
 *
 * @param landmarks A list of landmark names (strings).
 * @param regions A list of region names (strings).
 * @return A list of landmarks that are present in the provided regions.
 */
fun findIntersection(landmarks: List<String>, regions: List<String>): List<String> {

    val commonLandmarks = mutableListOf<String>()

    landmarks.forEach { landmark ->
        regions.forEach { region ->
            if (landmark in region) {
                commonLandmarks.add(landmark)
                return@forEach
            }
        }
    }

    return commonLandmarks
}
/**
 * Given a list of landmarks and a list of regions,
 * this function returns a list of all the landmarks that are present in the regions.
 *
 * @param landmarks A list of landmark names (strings).
 * @param regions A list of region names (strings).
 * @return A list of landmarks that are present in the provided regions.
 */
fun findIntersection(landmarks: List<String>, regions: List<String>): List<String> {
/**
 * Given a list of landmarks and a list of regions,
 * this function returns a list of all the landmarks that are present in the regions.
 *
 * @param landmarks A list of landmark names (strings).
 * @param regions A list of region names (strings).
 * @return A list of landmarks that are present in the provided regions.
 */
fun findIntersection(landmarks: List<String>, regions: List<String>): List<String> {

    val commonLandmarks = mutableListOf<String>()

    landmarks.forEach { landmark ->
        regions.forEach { region ->
            if (landmark in region) {
                commonLandmarks.add(landmark)
                return@forEach
            }
        }
    }

    return commonLandmarks
}