/**
 * This exercise requires writing a function that counts the number of common characters between two strings.
 * The function should iterate through each character in the first string and check if it exists in the second string.
 * If a character is found, the count should be increased.
 * At the end, the function should return the total count of common characters.
 *
 * @param string1 First string input
 * @param string2 Second string input
 * @return Number of common characters between the two strings
 */
fun countCommonCharacters(string1: String, string2: String): Int {

    var commonCount = 0

    for (char1 in string1) {
        for (char2 in string2) {
            if (char1 == char2) {
                commonCount++
                break
            }
        }
    }

    return commonCount
}
/**
 * This exercise requires writing a function that counts the number of common characters between two strings.
 * The function should iterate through each character in the first string and check if it exists in the second string.
 * If a character is found, the count should be increased.
 * At the end, the function should return the total count of common characters.
 *
 * @param string1 First string input
 * @param string2 Second string input
 * @return Number of common characters between the two strings
 */
fun countCommonCharacters(string1: String, string2: String): Int {
/**
 * This exercise requires writing a function that counts the number of common characters between two strings.
 * The function should iterate through each character in the first string and check if it exists in the second string.
 * If a character is found, the count should be increased.
 * At the end, the function should return the total count of common characters.
 *
 * @param string1 First string input
 * @param string2 Second string input
 * @return Number of common characters between the two strings
 */
fun countCommonCharacters(string1: String, string2: String): Int {

    var commonCount = 0

    for (char1 in string1) {
        for (char2 in string2) {
            if (char1 == char2) {
                commonCount++
                break
            }
        }
    }

    return commonCount
}