cpp implementation of climbing_stairs