hackerrank: Service Lane

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Solution {
static void Main(String[] args) {
/* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution */
string firstLine = Console.ReadLine();
string[] flineStrings = firstLine.Split(' ');
int N = int.Parse(flineStrings[0]); //freewal lenght
int T = int.Parse(flineStrings[1]); // nbr TestCases
string[] lineWithsStrings = Console.ReadLine().Split(' ');
int[] lineWiths = lineWithsStrings.Select(n => Convert.ToInt32(n)).ToArray();
for (int i = 0; i < T; i++)
{
string[] lineWithsSData = Console.ReadLine().Split(' ');
int start = int.Parse(lineWithsSData[0]);
int stop = int.Parse(lineWithsSData[1]);
int maxVehicle = 3;
for (int j = start; j <= stop; j++)
{
if (lineWiths[j] <= maxVehicle)
{
maxVehicle = lineWiths[j];
}
}
Console.WriteLine(maxVehicle);
}
}
}
.