You are given an integer array time of size n, where time[i] represents the time taken by the i-th process to send a notification to a single device.
All processes start working simultaneously and operate independently. Each process can send multiple notifications, but it can only send them one at a time, taking time[i] units for each notification.
Given an integer totalDevices, representing the total number of devices that need to be notified, determine the minimum time required to send notifications to all devices.