Design and Implement a Flight Status Notification Center
Build an in-memory subscription center with pluggable channels and truthful partial-delivery reports.
Travelers need notifications when a flight is delayed, cancelled, or assigned a different gate. Design and implement an in-memory FlightNotificationCenterImpl with pluggable NotificationChannel implementations such as email, SMS, or push.
The center must manage subscriptions, publish one flight-status event synchronously to every captured subscriber, continue after an individual channel fails, and return a per-delivery result.
For this exercise, assume subscribe creates and returns an opaque, unique subscription ID; unsubscribe(subscriptionId) removes exactly that subscription and returns whether it existed. Multiple subscriptions are allowed, including for the same traveler, flight, and channel.
For this exercise, assume publish captures matching subscriptions in registration order before delivery begins, so subscribe or unsubscribe calls made by a channel affect only later publications.
Implement at least two NotificationChannel implementations, the delivery result classes, and a main program that demonstrates complete success and partial failure. The written task excludes retries, persistence, queues, provider SDKs, and multithreaded delivery from the base implementation.