https://progiez.com/first-and-last-digit-codechef-solution-flow004
First and Last Digit: FLOW004