K-fold Cross Validation

I had some confusions in my AI class regarding how k-fold cross validation worked, and I found this very concise and clear explanation for it: