For an array of size N, what is the number of comparisons required?
Suppose provided array is inPutArray = [1,2,5,8,7,3] expected O/P -> 7 (second largest)
take temp array temp = [0,0], int dummmy=0; for (no in inPutArray) { if(temp[1]