Tell me about a real-like coding experience you had to complete on time.
Implement schedule_tasks(tasks). Each task is represented by an array [duration, deadline]; tasks run sequentially from time zero. Return the maximum number of tasks that can be completed without finishing any task after its deadline. You may reorder tasks, and tasks cannot be partially completed.
tasks is an array of integer pairs. Return an integer count.
def schedule_tasks(tasks):