P15 - Replicate the elements of a list a given number of times.