Commutative Memoization

Learn how to memoize a commutative function like sum(a, b), where the order of arguments does not affect the outcome.

Asked in Adobe frontend interviews