Credit for this problem goes to MindYourDecisions. Thanks!

Code Lock

A code has 4 digits and you know this information.

Can you crack the code?

Solution