/**
 * You are a police officer investigating a crime scene. The house you are currently in has a complex layout with multiple rooms.
 * You need to find the exact location of the criminal.
 *
 * The function takes in the house layout as a nested list where each element represents a room. The value 'C' represents the criminal's location.
 * Your task is to write code that searches for the criminal's location and returns the room number.
 *
 * @param houseLayout A nested list representing the house layout.
 * @return The room number where the criminal is located, or a message if the criminal is not found in the house.
 */
fun findCriminal(houseLayout: List<List<String>>): Any {

    for (i in houseLayout.indices) {
        for (j in houseLayout[i].indices) {
            if (houseLayout[i][j] == "C") {
                return listOf(i, j)
            }
        }
    }
    return "Criminal not found in the house."
}
/**
 * You are a police officer investigating a crime scene. The house you are currently in has a complex layout with multiple rooms.
 * You need to find the exact location of the criminal.
 *
 * The function takes in the house layout as a nested list where each element represents a room. The value 'C' represents the criminal's location.
 * Your task is to write code that searches for the criminal's location and returns the room number.
 *
 * @param houseLayout A nested list representing the house layout.
 * @return The room number where the criminal is located, or a message if the criminal is not found in the house.
 */
fun findCriminal(houseLayout: List<List<String>>): Any {
/**
 * You are a police officer investigating a crime scene. The house you are currently in has a complex layout with multiple rooms.
 * You need to find the exact location of the criminal.
 *
 * The function takes in the house layout as a nested list where each element represents a room. The value 'C' represents the criminal's location.
 * Your task is to write code that searches for the criminal's location and returns the room number.
 *
 * @param houseLayout A nested list representing the house layout.
 * @return The room number where the criminal is located, or a message if the criminal is not found in the house.
 */
fun findCriminal(houseLayout: List<List<String>>): Any {

    for (i in houseLayout.indices) {
        for (j in houseLayout[i].indices) {
            if (houseLayout[i][j] == "C") {
                return listOf(i, j)
            }
        }
    }
    return "Criminal not found in the house."
}