Product of the Last K Numbers | Leetcode 1352