Problem Statement
What is a generic type in Swift?
Explanation
Generics in Swift let you write flexible, reusable code for functions, classes, structs or enums that can operate on any type while still maintaining type safety. For example `func swap<T>(_ a: inout T, _ b: inout T)` works for any type `T`.