Copy-on-Write in Swift (iOS Interview Series #17)

Swift collections like Array and Dictionary are value types, but they are still efficient because of Copy-on-Write.