For example, I have a sequence of numbers: {1, 2, 5, 7}. I need to find the smallest and the biggest one, which are missed in this sequence (min=3 and max=6