branch capture solution

Advertisement. Closing in 15 seconds.