This is a verified interview question from Salesforce. Candidates reporting seeing this problem in recent Online Assessments (OAs) and onsite rounds. Mastering "Salesforce License Grouping" covers key patterns like Other.
"In Salesforce, developers manage multiple types of licenses for different features. Each license type has a specific number of available slots, represented by an array licenseSlots, where licenseSlots[i] indicates the number of available slots for the ith license type. The goal is to distribute these licenses into 2 or more equal groups, such that number of each license slots is divisible by total number of groups. To achieve this, the administrator can add more slots to any license type as needed. Determine the minimum number of additional slots required to create at least 2 equal groups of licenses."
Join thousands of developers practicing for Salesforce.