solution for codejom practice problems