Of the formal rules for writing an essay, only one can be named - the presence of a title.
The internal structure of the essay can be arbitrary. Since this is a small form of written work, it is not required to repeat the conclusions at the end, they can be included in the main text or in the heading.
Argumentation can precede the formulation of the problem. The wording of the problem may coincide with the final conclusion.
Unlike an essay, which is addressed to any reader, so it starts with "I want to talk about ..." and ends with "I came to the following conclusions ...", an essay is a remark addressed to a prepared reader (listener). That is, a person who already has a general idea of what will be discussed. This allows the author of the essay to focus on the disclosure of something new and not clutter up the presentation with service details.