'Flatten a Sequence' solved