Toptal interview question

Q: Find the shortest consecutive vacation days from an array