1. It's starting to make sense. There is a loop. Outlined in comments.

Signed-off-by: neil92 <patel.neil.92@gmail.com>