Intuit interview question

Technical question regarding coding.