/**
 * This function takes a list of criminals and a list of days as arguments.
 * It returns the criminals who were present on all the given days.
 *
 * @param criminals List of criminals
 * @param days List of days
 * @return List of criminals who were present on all the given days
 */
fun findCriminals(criminals: List<Map<String, Boolean>>, days: List<String>): List<Map<String, Boolean>> {

    val presentCriminals = mutableListOf<Map<String, Boolean>>()
    for (criminal in criminals) {
        var count = 0
        for (day in days) {
            if (criminal[day] == true) {
                count++
            } else if (criminal[day] == false) {
                count--
            }
        }
        if (count == days.size) {
            presentCriminals.add(criminal)
        }
    }
    return presentCriminals
}
/**
 * This function takes a list of criminals and a list of days as arguments.
 * It returns the criminals who were present on all the given days.
 *
 * @param criminals List of criminals
 * @param days List of days
 * @return List of criminals who were present on all the given days
 */
fun findCriminals(criminals: List<Map<String, Boolean>>, days: List<String>): List<Map<String, Boolean>> {
/**
 * This function takes a list of criminals and a list of days as arguments.
 * It returns the criminals who were present on all the given days.
 *
 * @param criminals List of criminals
 * @param days List of days
 * @return List of criminals who were present on all the given days
 */
fun findCriminals(criminals: List<Map<String, Boolean>>, days: List<String>): List<Map<String, Boolean>> {

    val presentCriminals = mutableListOf<Map<String, Boolean>>()
    for (criminal in criminals) {
        var count = 0
        for (day in days) {
            if (criminal[day] == true) {
                count++
            } else if (criminal[day] == false) {
                count--
            }
        }
        if (count == days.size) {
            presentCriminals.add(criminal)
        }
    }
    return presentCriminals
}