Synerzip: Codefest Oct 2014

Codefest problem