var reverseList = function(head) {     if(head === null) return null     let p = null, m = head, n = head.next     while(m !== null){   ...