The answer turns on whose side the obstacle is on. The truck is stopped in your lane with its hazard lights on and a warning triangle set out, and you can't get past in your own lane. You can only go around it through the oncoming lane, and a car is approaching there, so it's hard for the two of you to pass each other at the same time. When it's hard for oncoming vehicles to pass each other, the driver with the obstacle ahead gives way, and that's you. You may go around only after making sure it's safe for others, so first give way to the oncoming car, then go around the truck