Provided outline for the function which will return the result