/**
 * This function takes a matrix (2D list) and a target element as input. It should return a Pair containing the row and column indices of the target element in the matrix.
 * If the target element is not found in the matrix, it should return Pair(-1, -1).
 */
fun findElement(matrix: List<List<Int>>, target: Int): Pair<Int, Int> {

    for (i in matrix.indices) {
        for (j in matrix[i].indices) {
            if (matrix[i][j] == target) {
                return Pair(i, j)
            }
        }
    }
    return Pair(-1, -1)
}
/**
 * This function takes a matrix (2D list) and a target element as input. It should return a Pair containing the row and column indices of the target element in the matrix.
 * If the target element is not found in the matrix, it should return Pair(-1, -1).
 */
fun findElement(matrix: List<List<Int>>, target: Int): Pair<Int, Int> {
/**
 * This function takes a matrix (2D list) and a target element as input. It should return a Pair containing the row and column indices of the target element in the matrix.
 * If the target element is not found in the matrix, it should return Pair(-1, -1).
 */
fun findElement(matrix: List<List<Int>>, target: Int): Pair<Int, Int> {

    for (i in matrix.indices) {
        for (j in matrix[i].indices) {
            if (matrix[i][j] == target) {
                return Pair(i, j)
            }
        }
    }
    return Pair(-1, -1)
}