how do I write reflection?

It depends on the format. This is commonly done as essays, and more commonly, as journals.
Reflective writing reflects an image of you seeing the question in retrospect..how you feel, how it changed you, how it is now in context. Reflective writing is personal.

http://www.bridgewater.edu/~atrupe/ENG101/Text/Reflection.htm