@kumar985,
Wikipedia does a good job explaining it. I suppose there are probably some YouTube videos too.
In short, the
bulbar spiral valve in the frog, along with the way in which the ventricle has chambers (ventricle is a spongey cavity), helps to create pressure differences which help to separate the pulmonary and systemic circulations.