Custom Enum.take implementation

No Enum library functions or list comprehensions allowed.
(Used Enum.reverse)
Custom List.flatten implementation