Added solution for The Last Digit