input: Write a python function to schedule processes based on priority.
  assert Scheduler([Process(1, 10, 1), Process(2, 6, 4), Process(3, 4, 5)]) == [[1, 10], [2, 6], [3, 4]]
  assert Scheduler([Process(1, 5, 3), Process(2, 8, 2), Process(3, 2, 1)]) == [[3, 2], [2, 8], [1, 5]]
  assert Scheduler([Process(1, 7, 3), Process(2, 3, 2), Process(3, 1, 1), Process(4, 2, 4)]) == [[3, 1], [2, 3], [1, 7], [4, 2]]
output: def Scheduler(processes):
      processes.sort(key=lambda p: p.priority)
      return [[p.id, p.burst_time] for p in processes]
  
  class Process:
      def __init__(self, id, burst_time, priority):
          self.id = id
          self.burst_time = burst_time
          self.priority = priority