/**
 * Takes two strings as input and checks if any character from one string is present in the other string using loops.
 *
 * @param string1 First string.
 * @param string2 Second string.
 * @return True if any character is common in both strings, False otherwise.
 */
fun checkStrings(string1: String, string2: String): Boolean {

    for (char1 in string1) {
        for (char2 in string2) {
            if (char1 == char2) {
                return true
            }
        }
    }
    return false
}
/**
 * Takes two strings as input and checks if any character from one string is present in the other string using loops.
 *
 * @param string1 First string.
 * @param string2 Second string.
 * @return True if any character is common in both strings, False otherwise.
 */
fun checkStrings(string1: String, string2: String): Boolean {
/**
 * Takes two strings as input and checks if any character from one string is present in the other string using loops.
 *
 * @param string1 First string.
 * @param string2 Second string.
 * @return True if any character is common in both strings, False otherwise.
 */
fun checkStrings(string1: String, string2: String): Boolean {

    for (char1 in string1) {
        for (char2 in string2) {
            if (char1 == char2) {
                return true
            }
        }
    }
    return false
}