In the giveReview function there is a require for a review count but the review is not being tracked or incremented.
In the following code:
As we can see in line 5 there is require statement for reviewCount but there is no checks or tracking for the no of reviews or them being increased.
As there is no increment in the reviewCount it always remains 0 and the teacher can give unlimited reviews because according to the code it remains always > 5.
Manual testing
We can add the following line of code to fix the issue:
Fixed function after adding the code:
`reviewCount` for students is not updated after each review session
`reviewCount` for students is not updated after each review session
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.