Given an array of activities, an array is returned with consecutive times for each activity