/**
 * This function takes in two strings 'a' and 'b' and returns a sorted list of common characters present in both strings.
 */
fun findCommonCharacters(a: String, b: String): List<Char> {

    val commonChars = mutableListOf<Char>()
    for (char in a) {
        if (char.isLetter() && char.toLowerCase() in b.toLowerCase() && char.toLowerCase() !in commonChars) {
            commonChars.add(char.toLowerCase())
        }
    }
    return commonChars.sorted()
}
/**
 * This function takes in two strings 'a' and 'b' and returns a sorted list of common characters present in both strings.
 */
fun findCommonCharacters(a: String, b: String): List<Char> {
/**
 * This function takes in two strings 'a' and 'b' and returns a sorted list of common characters present in both strings.
 */
fun findCommonCharacters(a: String, b: String): List<Char> {

    val commonChars = mutableListOf<Char>()
    for (char in a) {
        if (char.isLetter() && char.toLowerCase() in b.toLowerCase() && char.toLowerCase() !in commonChars) {
            commonChars.add(char.toLowerCase())
        }
    }
    return commonChars.sorted()
}