Pure function :
A function is a process which takes inputs called arguments, and produces some output
known as return value. A function is called pure if it followed by the some rules :
- A function returns the same result for same arguments.
Its evaluation has no side effects, i.e., it does not alter input data.
No mutation of local & global variables.
It does not depend on the external state like a global variable