Prateek's submission of Decoder | CodeChef