Driver Code
var N1 = [ ] ; N1 . push ( 5 ) ; N1 . push ( 8 ) ; N1 . push ( 7 ) ; N1 . push ( 4 ) ; var N2 = [ ] ; N2 . push ( 2 ) ; N2 . push ( 1 ) ; N2 . push ( 3 ) ; var res = addStack ( N1 , N2 ) ; display ( res ) ;