Added solution for The last digit re-visited