Heat the oil in a large skillet. Add the onion and garlic; cook and stir until the onions begin to brown. Stir in the pumpkin, carrot, soy sauce, salt, and pepper; cook another 5 to 7 minutes, until pumpkin is tender. Sprinkle with sesame seeds before serving.