Entelect Interview Question

Convert a reversed string with punctuation.