Transition Function:

It tells the next state, given the current state and the next event