Need Help in "Triangle Query"

Can somebody provide a test case for which my solution fails? I’ve used segment trees and already tried many test cases and my code gives the correct answer for all of them
WA solution: CodeChef: Practical coding for everyone
@ssjgz @everule1