Update input-processor.js

Added course depth function to determine the minimum number of semesters that you need to stay to take the course.