A couple of years ago, during an interview, I was asked a question related to Copy-On-Write (COW). The interviewer asked:
“Are collections value or reference types in Swift? What should happen when you’re creating and assigning an array to another variable?”
I answered the se...