Pregunta de entrevista de State Street Syntel

Code for converting string from one pattern to another.. Example: "abc" to "a_b_c" pattern would be anything