Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 419 Bytes

File metadata and controls

20 lines (14 loc) · 419 Bytes

Java String Reverse

A palindrome is a word, phrase, number, or other sequence of characters which reads the same backward or forward.

Given a string A, print Yes if it is a palindrome, print No otherwise.

Constraints

  • A will consist at most 50 lower case english letters.

Sample Input

madam

Sample Output

Yes