Editorial Solution failing


#1

You’ve gotta be kidding me! The editorial solution failing for larger test cases is ridiculous!


#2

You might have forgot to do mod (10^9)+7