What are the common design patterns you use, and why?
Implement a transformation pipeline that demonstrates the Factory and Strategy patterns. Given a list of integers and ordered operation dictionaries, return the values after applying each operation sequentially.
Use the function signature below. Each operation is one of add, multiply, filter_even, or deduplicate.
def apply_transformations(values, operations):