question: public List < Order > fetchOrders ( int startIndex , int num ) { int endIndex = startIndex + num > orders . size ( ) ? orders . size ( ) : startIndex + num ; return orders . subList ( startIndex , endIndex ) ; }
target:  Returns a slice of orders