Write a recursive function called ‘add_digits’ that takes an integer as a parameter and adds its digits. For example, if we call this function with the parameter n=1234, the returned value is 1+2+3+4=10.
Include the ‘main’ function in your code and show how the ‘main’ function calls the function ‘add_digits’.
Make sure the function is recursive (it calls itself), and not iterative.