Programming Question-3:Min cut problem - naive implementation of the solution of the min cut problem