Microsoft Interview Question

Write a CleanAPI() method to remove dirty values in a list of integers.