Leetcode Linear Programming, This method uses simple assumptions for optimizing the given function.