Ad
  • Custom User Avatar

    Number of pairs will be half the total length of characters as two characters form one pair,
    so in if total number of characters are odd then last pair will be pair[s.length()/2]