Four-card problem

Sign in to test your solution.