Maximum Greatness After Rearranging An Array

Company: NVIDIA_IITG_10nov2024

Difficulty: medium