Adding solution for Problem 1 - buildCoder()