The code is giving an error in sample test case.
Link - https://ide.codingblocks.com/s/325581
1 count dp problem
@Mansi2103
refer to this corrected code https://ide.codingblocks.com/s/325647
Please mark your doubt as resolved and rate as well 
@Mansi2103
refer to this corrected code https://ide.codingblocks.com/s/325647
Please mark your doubt as resolved and rate as well 