Besi interview question

recursive sum function from 1 to n