Ad
  • Custom User Avatar

    After splitting the whole string check if the length of the last element in the array is 1. If it is then all you have to do is join an underscore with the last element.

  • Custom User Avatar

    You don't need to start counting from 1. Just look for the odd one, find it's index in the numbers array and increase it by 1.