Mother's Market interview question

math test.