Sollicitatievraag bij Google

Question based on array and vectors and then optimization.