https://practice.geeksforgeeks.org/problems/maximize-arrii-of-an-array/0