what is L,R in the question , and , how in the sample output 10 is in the range of 1 , 4
sample input :-
5
0 3
0 5
0 10
0 6
1 1 4 6
sample output :-
10
pls give some more examples to clear the question and tell , what is L,R and what is Y , which we need to print ?