Ramco Systems interview question

Questions with slicing and sorting a list.