1056. Confusing Number

In the world of cryptography, a special type of numerical cipher is used to conceal sensitive information. This cipher involves rotating numerical digits by 180 degrees, effectively transforming them into different valid digits. The rotation mapping is as follows: 0 remains 0, 1 remains 1, 6 becomes 9, 8 remains 8, and 9 becomes 6. Given an integer n, determine whether it is a confusing number, meaning that when its digits are rotated, the resulting number is different from the original.

Examples
Input: 6
Output: true
Hints
Related Problems

1056. Confusing Number

In the world of cryptography, a special type of numerical cipher is used to conceal sensitive information. This cipher involves rotating numerical digits by 180 degrees, effectively transforming them into different valid digits. The rotation mapping is as follows: 0 remains 0, 1 remains 1, 6 becomes 9, 8 remains 8, and 9 becomes 6. Given an integer `n`, determine whether it is a confusing number, meaning that when its digits are rotated, the resulting number is different from the original.