solution to code jam problems