# question 1


def rotateR(val):
    val[0],val[-1] = val[-1],val[0]