>> i dont know how you can say that

What do you think takes more time, counting the number of characters in the string or copying a single integer? Now square that estimate, because you called it for every iteration. Thinking in theory is fine, but you should use common sense first.

>> Guys can't we use the transform function here like the one used in the following code?

What do you think