write a function named rockpaperscissors. it should have one input: - an array with 2 elements, each representing a player in the game of rock paper scissors. it should return one output - a scalar with the result of the game. for the purposes of this program, assume the following numerical code: - 1 is rock - 2 is paper - 3 is scissors in the game of rock, paper, scissors, rock beats scissors, paper beats rock, and scissors bears paper. if players play the same object, the result is a tie. your output should be: