One number is correct and is also correctly placed: 6, 8, 2

From the first clue, possible numbers are - 6, 8, 2

One number is correct but wrong placed: 6, 1, 4

From the second clue, we know that 6 is not the possible number, so now the remaining numbers are 8, 2, 1, 4

Two Numbers are correct but wrong placed: 2, 0, 6

From the third clue, we know that 2, 0 are sure numbers because 6 is not the possible number. Now from the first clue again, number 2 will be the last number in the code.

Nothing is correct: 7, 3, 8

From the fourth clue, remove 8 from the possible numbers list, so remaining numbers are 2, 0, 1, 4

One Number is correct but wrong placed: 7, 8, 0

Since 2 is the last number in the code, you can read the second clue again and tell the another sure number is 4, so our final numbers are 0, 2 and 4 where 2 will come last.

Now read the third clue again and you will know that 0 cannot be placed in the middle, so it has to be the first number in the code. so our code would be 0 4 2