Block Interview Question

Write an escape function for some input strings