ADP Interview Question

Write code to add number in the range (n)