RetailMeNot interview question

Simple graph algorithms