@@ -0,0 +1,817 @@
+import java.io.*;%0Aimport java.util.*;%0A%0Apublic class Solution %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */%0A        %0A        Scanner in = new Scanner(System.in);%0A        int n = in.nextInt();%0A        int tests = in.nextInt();%0A        %0A        int%5B%5D road = new int%5Bn%5D;%0A        for (int i = 0; i %3C n; i++) %7B%0A            road%5Bi%5D = in.nextInt();%0A        %7D%0A        %0A        int i,j;%0A        for (int t = 0; t %3C tests; t++) %7B%0A            i = in.nextInt();%0A            j = in.nextInt();%0A            %0A            int min = 4;%0A            while (i %3C= j) %7B%0A                min = Math.min(min, road%5Bi%5D);%0A                i++;%0A            %7D%0A            %0A            System.out.println(min);%0A        %7D%0A    %7D%0A%7D%0A

Create ServiceLane.java