/**
 * Takes two strings as input and returns a list of common characters present in both strings
 */
fun findCommonCharacters(string1: String, string2: String): List<Char> {

    val commonCharacters = string1.filter { it in string2 }
    return commonCharacters.toList()
}
/**
 * Takes two strings as input and returns a list of common characters present in both strings
 */
fun findCommonCharacters(string1: String, string2: String): List<Char> {
/**
 * Takes two strings as input and returns a list of common characters present in both strings
 */
fun findCommonCharacters(string1: String, string2: String): List<Char> {

    val commonCharacters = string1.filter { it in string2 }
    return commonCharacters.toList()
}