Medium version of DailyProg exercise: Flagon of Flags