Leap Tools interview question

Finding out the sublist from a list.