Function find the desired value of time whose difference lies in the range [ L , R ]
static void maximumTimeWithDifferenceInRange ( String str , int L , int R ) { int i = 0 , j = 0 ; int h1 , h2 , m1 , m2 ;