Mathematica Interview Question

Behavior Based