k
times, performing the following steps:
a. Add all projects to the priority queue whose capital requirement is less than or equal to the current capital.
b. If the priority queue is empty, break the loop as no more projects can be started.
c. Extract the most profitable project from the priority queue and add its profit to the current capital.