I want to add a recommendation algorithm on Frappe LMS

I want to add a feature where if a student answers a question incorrectly, he or she will be recommended a remedial content, how do I go about it?