First, sort the processes in decreasing order of their Burst
Time.
Choose the process having highest Burst Time among all the
processes that have arrived till that time. Then process it for
its burst time. Check if any other process arrives until this
process completes execution.
Repeat the above both steps until all the processes are
executed.