Hirap naman!!!!! hahaha! All these algorithms remind me of Star Trek! 
You know what I did? I downloaded the video then I paused it at the codes and copied them down .. then slowed the video to see him doing it properly, hehehe.
Erika can complete the thing in 5 minutes. Kainis! Ako din! Once I get the hang of it, hehehe.