Site-To-Site with three or multiple Sites.

Hi, to make this short. I want three sites (each with own subnet and uplink) to reach each other site-to-site with ipsec vpn. Is it possible and how? I know it is pretty simple to have one main site and connect several sites to this main site. But how can i interconnect all sites together like in this picture. I'm struggling. Help is much appreciated.