How to Deal With A Spoiled Child?

My son is 4 years old. He doesn’t go to a nursery. He wants whatever someone else has, no matter what it is, and refuses to share things with anyone