ADP interview question

Write code to add number in the range (n)