Check if a number is a Mystery Number
Given a number, check whether it is a mystery number or not. A mystery number is a number that can be expressed as the sum of two numbers and those two numbers should be the reverse of each other.
Input : n = 121
Output : 29 92
Input : n = 22
Output : 11 11
Source: Paytm Interview Set 23
The idea is to try every possible pair smaller than or equal to n.