Create a function that turns this list of scores into an array of who is currently winning to illustrate(You-Y,Opponent-O) [closed]

You are given an array of scores.the even indexed number are your scores at each turn.The odd-indexed numbers are your opponent’s scores

Notes:
Write “T” if there is a tie at that point in the game

Example:
array[10,10,22,30,15,11]
output:[“T”,”O”,”Y”]