Task 1 Question 1 : updated default values for the function parameters

To make sure that the the function would not throw an error when the
user does not enter any values for the parameters, default values are
inserted in the parameters. And an addition in the code so that it is
okay for the values of the start range and the end range to be the same