Function for int2str
Anónimo
Important to note that insertion at postion 0 everytime will require shifting of string and that will be O(n) for each insertion and o(n2) effectively. Why not insert at end and after exiting loop reverse string. Both of these will be 0(n).