You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Iterate through the chalk vector and keep calculating the chalk used and chalk remaining. If at the end, there's still chalk remaining, calculate modulus of initial total chalk and chalk used. No matter how many rounds they go through, this is the number of chalk that will be left. Then repeat the process. If at any point of time, chalk needed is greater than chalk remaining, return index of the student