this is my code link
I have also searched in geeks and the method mentioned there is similar to mine can you look into it where have I lost track in my code,
thank you
My code is only passing one test case and i am not able to find where have i mistaken
@chauhanchp you are taking modulo with 10^8+7 take your mod equal to 10^9+7 and your code will work fine.