char slowestKey(int* releaseTimes, int releaseTimesSize, char * keysPressed){ int arr[][2]={keysPressed[0],releaseTimes[0]}; for (int i=1; i<releaseTimesSize; i++) { if (releaseTimes[i]-releaseTimes[i-1]>arr[0][1]) { arr[0][0]=keysPressed[i]; arr[0][1]=releaseTimes[i]-releaseTimes[i-1]; } else if(releaseTimes[i]-releaseTimes[i-1]==arr[0][1] && keysPressed[i]>arr[0][0]) arr[0][0]=keysPressed[i]; } return arr[0][0]; }