What is wrong in my code

solution Ide:-https://ide.geeksforgeeks.org/J7dhUDCdCB
question:- https://online.codingblocks.com/app/player/160823/content/159304/5208/code-challenge

i can’t see the question
is it Tilling problem 2??

Read Question Carefully

Output Format

Print answer for every test case in a new line modulo 10^9+7 .

you forgot this
after that code will pass all testcase

Modified Code