1056. Confusing Number

A confusing number is a number that, when rotated 180 degrees, becomes a different number. Rotating a number reverses the order of its digits and replaces each digit with its rotated form: 0 stays 0, 1 stays 1, 6 becomes 9, 8 stays 8, and 9 becomes 6. Digits 2, 3, 4, 5, and 7 have no rotated form, so any number containing one of them is not a confusing number. Given an integer n, return true if n is a confusing number, otherwise return false.

Examples
Input: 1
Output: false
Hints
Related Problems

1056. Confusing Number

A confusing number is a number that, when rotated 180 degrees, becomes a different number. Rotating a number reverses the order of its digits and replaces each digit with its rotated form: `0` stays `0`, `1` stays `1`, `6` becomes `9`, `8` stays `8`, and `9` becomes `6`. Digits `2`, `3`, `4`, `5`, and `7` have no rotated form, so any number containing one of them is not a confusing number. Given an integer `n`, return `true` if `n` is a confusing number, otherwise return `false`.