https://practice.geeksforgeeks.org/problems/product-array-puzzle/0