Function to find the minimum number corresponding to every subarray of length K , for every K from 1 to N
static void lengthOfSubarray ( ArrayList < ArrayList < Integer > > indices , Set < Integer > st , int N ) {