Pergunta de entrevista da empresa Apple

What's the difference between a reference type and a value type in Swift