You should be able to tell me I don’t think it is passing the tests yet.
To display your code in here you need to wrap it in triple back ticks. On a line by itself type three back ticks. Then on the first line below the three back ticks paste in your code. Then below your code on a new line type three more back ticks. The back tick on my keyboard is in the upper left just above the Tab key and below the Esc key.
You still aren’t doing anything with the return value of the recursive call. I will say that you are getting closer, you definitely want to use unshift after the recursive call. But you can’t just use the variable arr without declaring it first. What is the return type of the recursive call? That should be a hint as to where you you should declare arr.
I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.