Function to return the maximum possible time in 24 - Hours format
static String getMaxTime ( int [ ] arr ) { Dictionary < int , int > hashMap = getFrequencyMap ( arr ) ; int i ; bool flag ; String time = " " ; flag = false ;