Programs related to Tree and String manipulations