Given an integer, determine whether it reads the same backward as forward without converting to string.