How to correctly define and use global variables in the module in Julia?

See Problem-Algorithm-Solver pattern. You’ll find the answer there.

No matter how many parameters describe the problem, putting them in one variable makes it easier to pass them as arguments to the function everytime.