/**
 * This function takes two strings as input and returns a string containing the common characters found in both strings.
 */
fun findCommonChars(str1: String, str2: String): String {

    var commonChars = ""
    for (char1 in str1) {
        for (char2 in str2) {
            if (char1 == char2) {
                commonChars += char1
                break
            }
        }
    }
    return commonChars
}
/**
 * This function takes two strings as input and returns a string containing the common characters found in both strings.
 */
fun findCommonChars(str1: String, str2: String): String {
/**
 * This function takes two strings as input and returns a string containing the common characters found in both strings.
 */
fun findCommonChars(str1: String, str2: String): String {

    var commonChars = ""
    for (char1 in str1) {
        for (char2 in str2) {
            if (char1 == char2) {
                commonChars += char1
                break
            }
        }
    }
    return commonChars
}