Toptal Interview Question

Q: Find the shortest consecutive vacation days from an array