Intuit interview question

Nothing very difficult asked as such