Qualtrics interview question

Two Sum (recursive solution)