Company: amazon_23april
Difficulty: medium
EffiBin Kit Optimization With Amazon's new innovative EffiBin Kit users can effortlessly optimize the arrangement of their storage bins. This kit is designed to minimize the overall effort needed for efficient organization. The process starts with an array of bins, and the objective is to reduce the total effort required. The effort is the sum of efforts needed for each bin. Formally, given an array effort of size n , utilizing the EffiBin Kit, users can perform operations on the array. In each operation, the user chooses two positions i and j , such that the effort of the bin at position i ( effort[i] ) is divisible by the effort of the bin at position j ( effort[j] ). When this condition is satisfied, the effort of bin i can be updated to equal the effort of bin j . This operation can be repeated as many times as possible, on different bins or positions. An integer x is divisible by another integer y if x can be divided by y exactly, with nothing left over. For example, 6 is divisibl