My solutions for the Facebook hackercup problems