What is a pure method?
A method that returns a value but does not change the state of an object is known as pure method.