Function topic not taught

How can I write a function when it is yet to be taught?

@Syed-Siddiqui-2497215583854102
this question can be done without defining a function too.