Online Buddies interview question

The technical programming test was extremely difficult. I have been programming in Java or over 10 years, and solved lots of issues and built lots of apps. So, I was stunned to be asked these questions which I feel don't come up every single day in developing apps.