(define (mystery l) (cond ((null? l) ()) ((list? (car l)) (append (mystery (car l)) (mystery (cdr l)))) (else (cons (car l) (mystery (cdr l))))))