A coding excercise for redfin.