Robosoft Technologies Interview Question

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