[Week 3] check if the numbers are ordered properly