Checking Perfect Square by Unit Digit