Intuit Interview Question

The behavior question is weird