Function that prints the final string
static void FindString ( String str [ ] , int num [ ] , int n ) { Comparator < Priority > comparator = new PQ ( ) ; PriorityQueue < Priority > p = new PriorityQueue < Priority > ( comparator ) ;