Solution for map
Solution for times
Solution for reduce
Solution for whilst