Update number_ways.cpp