The Wayback Machine - https://web.archive.org/web/20230529064008/https://practice.geeksforgeeks.org/problems/convert-an-array-to-reduced-form1101/1