Task 12: Duplexer redux, solution from https://github.com/grota/nodejs-exercises/blob/master/stream-adventure/12.js#L2