>>16276142first 2 say one digit is right, but both of them differ by saying its in the right place and wrong place, third says two are right and in the wrong place, fourth says all are wrong and fifth says one is right in the wrong space
according to the fourth, 7 3 and 8 are all incorrect, so in the 5th, the right number in the wrong position is 0
in the 3rd, other than 0 there are two numbers and only one of them can be right in the wrong position, if we assume its 6, then the logic breaks with the first two because they differ by saying the number is in the right and wrong position despite 6 being in the same spot, so the other number is 2
0 is wrong in the third and second position so its in the first, 2 is said to be right in the third position, so the last one is 1 or 4, but because the number is in the wrong position and were looking for the number in the second position it cant be 1 so its 4, giving 042