Amazon Interview Question

Design an algorithm to find whether a String (having a numerical value) is upside-down same or not. e.g. 818, 609 are upside-down same while 816, 807 are not.