Link to code : https://repl.it/@NikhilAgrawal/DQUERY Link to code : http://www.spoj.com/problems/DQUERY/
Can anyone please help me debugging it? I am getting wrong answer though everything seems correct to me.