Question d’entretien chez Publicis Sapient

Coding question on finding the count of longest consecutive numbers in an array and optimize it using collection.