Explore the doctrine of res judicata, a fundamental legal principle that prevents the relitigation of a matter that has been…