I don't understand what the problem is. Could you be more specific? Are there some statements that you don't understand.
For example: e--; // Decrements the value in e by 1

Please edit your...