Online proctoring to detect and prevent cheating