Intuit Interview Question

A simple coding question that just requires good reasoning.