SimilarWeb interview question

An exercise with an array.