How do you make sure that the problem you are solving is the *right* problem to solve?

Interview question asked to UX Designers interviewing at HelloSign, Bitdefender, Docker and others: How do you make sure that the problem you are solving is the *right* problem to solve?.