Added solution to problemA round1C 2009