Check if two strings are the reverse of each other.
Difficulty: Medium
Phase: 5 · Strings
XP Reward: 20 XP
Topics: Strings, Medium
Supported Languages: Python, JavaScript, C, C++, Java
Problem Description
Given two strings on separate lines, check if one is the exact reverse of the other. Print 'Yes' or 'No'. Input Format: Read input from standard input (stdin). Output Format: Print the result to standard output (stdout).
Constraints
- -10^9 <= N <= 10^9
Examples
Example 1
Input: abc cba
Output: Yes
Explanation: Sample execution for input abc cba