David's submission of Reverse | CodeChef