Given a string str
, reverse it omitting all non-alphabetic characters.
For str = "krishan"
, the output should be "nahsirk"
.
For str = "ultr53o?n"
, the output should be "nortlu"
.
[input]
stringstr
A string consists of lowercase latin letters, digits and symbols.
[output]
a string