that is ok but what is regarding strings with new operator and without new operator ,
in the problem under consideration there is no object defined with new keaword so no ibject should get gcd even if the reference is srt to null would somebody pls flash on this concept