Back to Problem List

Mirror Room


Given a word SS​, print it and its reverse out on separate lines with each line having borders to create a "mirror" effect.

INPUT FORMAT:

A word SS​​

OUTPUT FORMAT:

The first line has the word SS with borders

The second line has SS​ reversed with borders

SAMPLE INPUT:

hello

SAMPLE OUTPUT:

|hello|
|olleh|

Write code below: