input: [0] Great Great Great Grandchild [1] Great Great Grand Niece or Nephew [2] First Cousin Three Times Removed [3] Second Cousin Twice Removed [4] Third Cousin Once Removed [5] Fourth Cousin [6] Fourth Cousin Once Removed [8] Fourth Cousin Three Times Removed [7] 
output: Fourth Cousin Twice Removed