Its giving wrong ans for the first value of first test case 1st query

its giving wrong ans for the first value of first test case 1st query

hi @rahulisaboy77 share the code on ide.codingblocks.com
write
save
share the url of the page…