Marvell Technology Interview Question

find the greatest interval in array