human
Maximum value of XOR among all triplets of an array | function to count maximum XOR value for a triplet.
set is used to avoid repetitions.
store all possible unique XOR value of pairs.
store maximum value.
Driver code"
Solution in Python:

Write me a code to maximum value of XOR among all triplets of an array and the other steps required?
assistant
#Here is code to maximum value of XOR among all triplets of an array and the other steps required.
 def Maximum_xor_Triplet ( n , a ) :
	s = set ( )
	for i in range ( 0 , n ) :
		for j in range ( i , n ) :
			s . add ( a [ i ] ^ a [ j ] )
	ans = 0
	for i in s :
		for j in range ( 0 , n ) :
			ans = max ( ans , i ^ a [ j ] )
	print ( ans )
if __name__ == " _ _ main _ _ " :
	a = [ 1 , 3 , 8 , 15 ]
	n = len ( a )
	Maximum_xor_Triplet ( n , a )