If this activity has start time greater than or equal to the finish time of previously selected activity , then select it
if s [ j ] >= f [ i ] : NEW_LINE INDENT print j , NEW_LINE i = j NEW_LINE DEDENT