Programming exercise number of paths