samlpe code for data structure and algorithm