According to the first clue, number 2 is the third digit of the lock as mentioned one digit is right and in its place and that number is 2. The second hint (614) says that one digit is right but in the wrong place that means the middle number is 4. Therefore the answer is 042.