Crack the Code 2 4 1

Crack the Three digit Code ? ? ?
2 4 1 - One number is correct and well placed
4 1 3 - Nothing is correct
5 3 2 - Two numbers are correct but wrong places
3 4 7 - One number is correct but wrong placed
7 5 1 - Two numbers are correct but wrong places
What is the three digit code ? ? ?
Share it if you cracked the code !!!
Click here for Answer
Answer : 2 7 5Explanation :
from 1 and 2, we get that 2 is the first digit of the code.
from 2 and 3, we get that 5 is part of the code but its position not known yet.
from 2 and 4, we get that 7 is part of the code and its in the second position.
and therefore 5 would be in the third position, (last statement not required to solve)
and Hence the code is 2 7 5.