Robosoft Technologies interview question

What do you understand by SQL constraints. Write a user defined function for removing the outliers in python.