Compute product excluding index without division | Amazon Interview Question