depth first
printing solution average