Delinea Interview Question

Get longest subset containing consecutive numbers in any order.