Optimizing Box Weights Hackerrank Practice Platform