The coding pattern works by splitting the word at position ceil((length+1)/2) and swapping the halves. For INDEA (5 letters), split at position 3: IN|DEA becomes DEA|IN = DEAIN. For SRILANKA (8 letters), split at position 5: SRILA|NKA becomes NKA|SRILA = NKASRILA.