Count Binary String DP 2nd and 3rd test giving wrong answer

Can you tell why 2nd and 3 rd test case giving wrong answer

@Ram_Vilash_Kumar
change the return type of function to long long int.
It will pass after doing this.

@Ram_Vilash_Kumar
Also please mark theis doubt as resolved after getting AC