How to implement this exercise (dynamic array)? : <p>I'm having like an assesment exercise.</p>

<p>So given a Number, for example 12345, I must find out the sum sequence of the digits of the given number (1 + 2 +3 + 4 +5) and then add to it the result (15), and repeat this till the sum sequence of the last number is a digit (in this case is 6).</p>

<p><strong>Example :</strong>  12345 + 15 + 6 = 12366;</p>

<p>666 + 24 + 6 = 696;</p>

<p>I've been thinkig to store the digits in an array, but then I realized the array's size is static. Now I'm thinking to make a linked list, but I'm not really sure. Does it involve linked lists?</p>

<p>Just guide me to the right path. What should I use?</p>
