You are viewing a single comment's thread. Return to all comments →
it is totally worng answer
It is kind of poorly written, but should give the right results. It can certainly be done all in one for loop though, and in my opinion, using a string array is much cleaner than using a switch statement.