/**
 * Given the name of an actor/actress and a year, return the number of Oscars won by the actor/actress for movies released in that year.
 */
fun findOscars(actor: String, year: Int): Int {

    return when (actor) {
        "Meryl Streep" -> when (year) {
            1983 -> 1
            2011 -> 1
            else -> 0
        }
        "Katharine Hepburn" -> when (year) {
            1933 -> 1
            1968 -> 1
            1981 -> 1
            1982 -> 1
            else -> 0
        }
        "Jack Nicholson" -> when (year) {
            1976 -> 1
            1983 -> 1
            1997 -> 1
            else -> 0
        }
        else -> 0
    }
}
/**
 * Given the name of an actor/actress and a year, return the number of Oscars won by the actor/actress for movies released in that year.
 */
fun findOscars(actor: String, year: Int): Int {
/**
 * Given the name of an actor/actress and a year, return the number of Oscars won by the actor/actress for movies released in that year.
 */
fun findOscars(actor: String, year: Int): Int {

    return when (actor) {
        "Meryl Streep" -> when (year) {
            1983 -> 1
            2011 -> 1
            else -> 0
        }
        "Katharine Hepburn" -> when (year) {
            1933 -> 1
            1968 -> 1
            1981 -> 1
            1982 -> 1
            else -> 0
        }
        "Jack Nicholson" -> when (year) {
            1976 -> 1
            1983 -> 1
            1997 -> 1
            else -> 0
        }
        else -> 0
    }
}