help in lr queries

can anyone tell me where i am wrong
solution link -CodeChef: Practical coding for everyone