Andrey's submission of Number of Ways | CodeChef