Link list node
class Node { constructor ( ) { this . data = ' ' ; this . next = null ; } } ; var head_ref = null ; function maxChar ( head ) { var p = head ; var max = - 1 ; var res = ' ' ; while ( p != null ) {