Write cоde tо define а functiоn thаt uses three pаrameters, and returns a result as described below.Think carefully about how to efficiently phrase your code.Make sure not to press tab as this exits the exam page.You will not be allowed to get back into the test if you exit the test page. This function checks if the third parameter is more than 0 and less than the sum of the first and second parameter, the function returns the third parameter to the power of the sum of the first and second parameter.If the third parameter is not more than 0, the function return the second parameter to the power of the first parameter, if the first parameter is more than 0.Otherwise, the function returns -1. Do not write any other code.Ensure to apply the best practice recommendations we learned about. Missing this will cause point deductions.