Pls help to print string in given format

Printable View