Solution to The Minimum Problem

Warning! 5 square solution below!