Microsoft Interview Question

Given a sorted array of integers, return a string array in the format ["start int -> end int", int] where start is the beginning of a substring of continuous numbers to end, and int is non continuous integers.