no of ways to reach is solved