Solution for Add it Up challenge