what is problem solving in psychology