His critical thinking helped him solve the problem.