ITC Infotech interview question

Problems based on sorting,Binary trees.One question on DBMS.Extracting data from the database.