Anup Ghosh's submission of Reverse | CodeChef