Find Sum of Array Product of Magical Sequences

Find Sum of Array Product of Magical Sequences - Coding Problem | K5kC