Bridgewater Associates interview question

I was asked to write a simple text analytics program.