title: Method for finding Mathematical group of groups in Java
body: <p>For example if the function get this array of strings {A,B,C}
  it will return array  of those items:</p>
  
  <p>{"","A","B","C","AB","AC","BC","ABC"}</p>