Marvell Technology interview question

find the greatest interval in array