Fixed up ex3.lisp, got it working
Tested with input '(1 2 (3 3 4))