function to concatenate the 2 nd ( back ) list at the end of the 1 st ( front ) list and returns the head of the new list
static Node concatFrontAndBackList ( Node front , Node back ) { Node head = front ; if ( front == null ) return back ; while ( front . next != null ) front = front . next ; front . next = back ; return head ; }