The grader does not actually examine your source code: it only calls your function with test parameters and checks the output. So it only matters that your solution is correct, even if you don’t structure it the same way the comments in the template code suggest.
But I think this is probably a duplicate thread and you later found that the grader did not accept your code. I have already answered you on that thread.