/**
 * This function calculates the XOR sum of a given string by performing XOR operation with each character in the string.
 *
 * @param n An integer representing the length of the string.
 * @param s A string containing only lowercase alphabets.
 * @return An integer representing the XOR sum of the string.
 */
fun calculateXorSum(n: Int, s: String): Int {

    var xorSum = 0
    var i = 0

    while (i < n) {
        xorSum = xorSum xor s[i].toInt()
        i++
    }

    return xorSum
}

// Example usage
/**
 * This function calculates the XOR sum of a given string by performing XOR operation with each character in the string.
 *
 * @param n An integer representing the length of the string.
 * @param s A string containing only lowercase alphabets.
 * @return An integer representing the XOR sum of the string.
 */
fun calculateXorSum(n: Int, s: String): Int {
/**
 * This function calculates the XOR sum of a given string by performing XOR operation with each character in the string.
 *
 * @param n An integer representing the length of the string.
 * @param s A string containing only lowercase alphabets.
 * @return An integer representing the XOR sum of the string.
 */
fun calculateXorSum(n: Int, s: String): Int {

    var xorSum = 0
    var i = 0

    while (i < n) {
        xorSum = xorSum xor s[i].toInt()
        i++
    }

    return xorSum
}

// Example usage