/**
 * This function takes in two numbers and two strings, and concatenates them in a specific pattern. It returns the result.
 *
 * @param num1 First number.
 * @param num2 Second number.
 * @param string1 First string.
 * @param string2 Second string.
 * @return Concatenated result.
 */
fun concatenateNumberString(num1: Int, num2: Int, string1: String, string2: String): String {

    var result = ""
    val commonLength = minOf(string1.length, string2.length)
    for (i in 0 until commonLength) {
        result += "${string1[i]}${string2[i]}"
        if (i == num1) {
            result += num1
        }
        if (i == num2) {
            result += num2
        }
    }
    return result
}
/**
 * This function takes in two numbers and two strings, and concatenates them in a specific pattern. It returns the result.
 *
 * @param num1 First number.
 * @param num2 Second number.
 * @param string1 First string.
 * @param string2 Second string.
 * @return Concatenated result.
 */
fun concatenateNumberString(num1: Int, num2: Int, string1: String, string2: String): String {
/**
 * This function takes in two numbers and two strings, and concatenates them in a specific pattern. It returns the result.
 *
 * @param num1 First number.
 * @param num2 Second number.
 * @param string1 First string.
 * @param string2 Second string.
 * @return Concatenated result.
 */
fun concatenateNumberString(num1: Int, num2: Int, string1: String, string2: String): String {

    var result = ""
    val commonLength = minOf(string1.length, string2.length)
    for (i in 0 until commonLength) {
        result += "${string1[i]}${string2[i]}"
        if (i == num1) {
            result += num1
        }
        if (i == num2) {
            result += num2
        }
    }
    return result
}