/**
 * This function takes in two strings and returns a list of common characters between the two strings.
 */
fun findCommonChars(str1: String, str2: String): List<Char> {

    val commonChars = mutableListOf<Char>()

    // Loop over each character in the first string
    for (char in str1) {
        // Check if the character is also present in the second string and not already in commonChars list
        if (char in str2 && char !in commonChars) {
            commonChars.add(char)
        }
    }

    return commonChars
}
/**
 * This function takes in two strings and returns a list of common characters between the two strings.
 */
fun findCommonChars(str1: String, str2: String): List<Char> {
/**
 * This function takes in two strings and returns a list of common characters between the two strings.
 */
fun findCommonChars(str1: String, str2: String): List<Char> {

    val commonChars = mutableListOf<Char>()

    // Loop over each character in the first string
    for (char in str1) {
        // Check if the character is also present in the second string and not already in commonChars list
        if (char in str2 && char !in commonChars) {
            commonChars.add(char)
        }
    }

    return commonChars
}