Deloitte interview question

Given an input array, print all the subarray sequences which is increasing by 1, where the sequence size is greater than 1. input "1", "2","3","5","9","6", "7" ,"8" ,"4" ,"-3", "-2" ,"-1" output 1 2 3 6 7 8 -3 -2 -1