New York Times interview question

Take home code assessment