Prateek's submission of RD-CODE | CodeChef