/**
 * This function takes two strings as input and finds the intersection of their characters based on the modulus operation.
 *
 * @param string1 The first input string
 * @param string2 The second input string
 * @return The intersection of characters from both strings
 *
 * Example:
 * INPUT:
 * string1 = "Hello"
 * string2 = "World"
 *
 * OUTPUT:
 * "o"
 */
fun modulusStringIntersection(string1: String, string2: String): String {

    var result = ""
    
    for (i in string1.indices) {
        if (i % string2.length == 0) {
            result += string1[i]
        }
    }
    
    return result
}
/**
 * This function takes two strings as input and finds the intersection of their characters based on the modulus operation.
 *
 * @param string1 The first input string
 * @param string2 The second input string
 * @return The intersection of characters from both strings
 *
 * Example:
 * INPUT:
 * string1 = "Hello"
 * string2 = "World"
 *
 * OUTPUT:
 * "o"
 */
fun modulusStringIntersection(string1: String, string2: String): String {
/**
 * This function takes two strings as input and finds the intersection of their characters based on the modulus operation.
 *
 * @param string1 The first input string
 * @param string2 The second input string
 * @return The intersection of characters from both strings
 *
 * Example:
 * INPUT:
 * string1 = "Hello"
 * string2 = "World"
 *
 * OUTPUT:
 * "o"
 */
fun modulusStringIntersection(string1: String, string2: String): String {

    var result = ""
    
    for (i in string1.indices) {
        if (i % string2.length == 0) {
            result += string1[i]
        }
    }
    
    return result
}