Topsy turvy numbers are numbers that when inverted (rotated 180 degrees) are unchanged. The most recent topsy turvy years were 1961 and 1881. The next one won't be until 6009. Mathemeticians have shown little interest in these numbers, but Innokodakademijaians are always up for a challenge:
Write a function that accepts two non-negative integers and returns an array of all topsy turvy numbers inclusively in that range.
topsyTurvy(0, 10) ➞ [0, 1, 8]
topsyTurvy(10, 100) ➞ [11, 69, 88, 96]
topsyTurvy(1000, 2000) ➞ [1001, 1111, 1691, 1881, 1961]
N/A