Fractional Knapsack Problem Time Complexity