Reversing order of `prod(itr)`

If you are using a dictionary, the iteration order is undefined and may change from release to release. So I think you need a different data structure if you want a specific order.

2 Likes