Leetcode 1795. Rearrange Products Table | Hello Interview