The answer would be insight. In psychology, this only happens when a solution or answer to a problem grants itself rapidly and deprived of warning. It is the sudden finding of the correct answer following improper attempts founded on trial and error.