https://keroseneheaterreview.blogspot.com/2024/03/given-array-of-integers-nums-and.html