First and Last Digit | CodeChef