How would you implement a function that formats a list of items into a single readable string?

Technical