you give array a length N weight mass a_1 a_2a_nno weight mass you weight balance leave rightYoudont putweightsin order a_1a_nthere astre Sconsisting character l rmeane put theithweight A_i butithweight choice leave right balance heavy Find order put weight balance rule stre S satisfy