Oracle Cloud Infrastructure training modules must be completed in prerequisite order. Given a number of courses and prerequisite pairs, return any valid order in which all courses can be completed.
A pair [course, prerequisite] means the prerequisite course must be completed before course. If the prerequisites contain a cycle and completion is impossible, return an empty list.
Implement find_course_order(num_courses, prerequisites).
num_courses is an integer representing courses labeled from 0 through num_courses - 1.prerequisites is a list of integer pairs, where each pair has the form [course, prerequisite].[] if no valid order exists.def find_course_order(num_courses, prerequisites):