SimilarWeb Interview Question

An exercise with an array.