Answer :

The first clue only tells us that there is one digit that is in the right place, so it could be any one of the following.

The second one tells us that one of the digits is right but in the wrong place, we still cannot confirm if 5 is the number we are talking about.

The fourth clue says that all the numbers are incorrect, so the digits are 2, 5, 0 or 1, now we must find out the correct order.

From clues 3 and 5 we can assume that 0 is one of the digits and that it comes first.

We will discard the number 5 because in clue 3 they talk about 2 correct digits, we already know that 0 is one and we choose 2 instead of the number five because of clues 1 and 2, which talk about only one digit in the correct place but in both of them the 5 remains in the same place.

The 3 digists are: 1, 0 and 2

The correct order is 012