title: I want to make list of characters to display in threes
body: <p>I want to make list of characters to display in threes and no one should appear more than 3 times. Example if I have ABCDEF they should display in this format, ABC,DCA,CDB,FAE,EDB, EF, F.
  both in Java Its relevant to my Studies please.
  I get chucked somewhere very far compare to the ones i have being seeing so far.
  The Following was my attempt</p>