Amit Dwivedi's submission of First and Last Digit | CodeChef