/**
 * Given a list of strings and a character 'x', find the indices of positions where 'x' appears
 * in the strings using indexing and slicing, and return the list of indices.
 *
 * @param strings A list of strings to search
 * @param x The character to find
 * @return A list of indices where 'x' appears in the strings
 */
fun findXInStrings(strings: List<String>, x: Char): List<Pair<Int, Int>> {

    val indices = mutableListOf<Pair<Int, Int>>()

    // Iterate over each string in the list
    for (i in strings.indices) {
        val string = strings[i]

        // Iterate over each character in the string
        for (j in string.indices) {
            if (string[j] == x) {
                // Append the index where 'x' is found in the string
                indices.add(Pair(i, j))
            }
        }
    }

    return indices
}
/**
 * Given a list of strings and a character 'x', find the indices of positions where 'x' appears
 * in the strings using indexing and slicing, and return the list of indices.
 *
 * @param strings A list of strings to search
 * @param x The character to find
 * @return A list of indices where 'x' appears in the strings
 */
fun findXInStrings(strings: List<String>, x: Char): List<Pair<Int, Int>> {
/**
 * Given a list of strings and a character 'x', find the indices of positions where 'x' appears
 * in the strings using indexing and slicing, and return the list of indices.
 *
 * @param strings A list of strings to search
 * @param x The character to find
 * @return A list of indices where 'x' appears in the strings
 */
fun findXInStrings(strings: List<String>, x: Char): List<Pair<Int, Int>> {

    val indices = mutableListOf<Pair<Int, Int>>()

    // Iterate over each string in the list
    for (i in strings.indices) {
        val string = strings[i]

        // Iterate over each character in the string
        for (j in string.indices) {
            if (string[j] == x) {
                // Append the index where 'x' is found in the string
                indices.add(Pair(i, j))
            }
        }
    }

    return indices
}