/**
 * This exercise requires you to use a for loop with strings and tuples. It may be challenging, so take your time to understand the concept and solve it.
 */
fun psychologistCode(stringList: List<String>, tupleList: List<Pair<String, String>>): List<String> {

    // Step 1: Initialize an empty list
    val resultList = mutableListOf<String>()

    // Step 2: Iterate over all the strings in the stringList
    for (string in stringList) {
        // Step 3: Iterate over all the tuples in the tupleList
        for ((firstElement, secondElement) in tupleList) {
            // Step 5: Check if the first element of the tuple is present in the string
            if (string.contains(firstElement)) {
                // Step 6: Add the second element of the tuple to the resultList
                resultList.add(secondElement)
            }
        }
    }

    // Step 7: Return the resultList
    return resultList
}
/**
 * This exercise requires you to use a for loop with strings and tuples. It may be challenging, so take your time to understand the concept and solve it.
 */
fun psychologistCode(stringList: List<String>, tupleList: List<Pair<String, String>>): List<String> {
/**
 * This exercise requires you to use a for loop with strings and tuples. It may be challenging, so take your time to understand the concept and solve it.
 */
fun psychologistCode(stringList: List<String>, tupleList: List<Pair<String, String>>): List<String> {

    // Step 1: Initialize an empty list
    val resultList = mutableListOf<String>()

    // Step 2: Iterate over all the strings in the stringList
    for (string in stringList) {
        // Step 3: Iterate over all the tuples in the tupleList
        for ((firstElement, secondElement) in tupleList) {
            // Step 5: Check if the first element of the tuple is present in the string
            if (string.contains(firstElement)) {
                // Step 6: Add the second element of the tuple to the resultList
                resultList.add(secondElement)
            }
        }
    }

    // Step 7: Return the resultList
    return resultList
}