#C8608. Mirror Image Check
Mirror Image Check
Mirror Image Check
In this problem, you are given two strings, (s_1) and (s_2). Your task is to determine whether (s_1) is the mirror image of (s_2); that is, whether (s_1) is exactly the reverse of (s_2). In addition, if either (s_1) or (s_2) is the string representation of a null input (i.e. "None"), then the answer should be (False).
Example:
If (s_1 = \texttt{abc}) and (s_2 = \texttt{cba}), then the output should be (True) because (\texttt{cba}) is the reverse of (\texttt{abc}).
inputFormat
The input consists of two lines read from standard input. The first line contains the string (s_1) and the second line contains the string (s_2). If either of the inputs is exactly the text "None", then it should be treated as a null value.
outputFormat
Output a single line to standard output: (True) if (s_1) is the mirror image of (s_2) (i.e., (s_1 = \texttt{reverse}(s_2))); otherwise, output (False).## sample
abc
cba
True