Intuit interview question

General coding question