Online education platform Chegg faces challenges as more students turn to AI chatbots for academic assistance.