Implementing problem 1 (sequence function)
Impelemnting problem 2 (string-append-map)