Maximize Spanning Tree Stability with Upgrades — CaffeCode