A sample for find max/min value in list