Assume that there is a question where a string needs to be passed. Some modification needs to be done on the string and then returned back.
For the programming languages like C where a string is a character array, making the modifications, swapping characters is not a problem as all of them can be done in place.
But for programming languages like Python, making in place modifications, or swapping characters is not that straightforward.
Hence I convert the string to a list, and then do the modifications and then make the string back and return.
The question is: Will the conversion of a string to a list and back count in time complexity in interviews.