Getir interview question

Can you write a recursive function?