My solutions for CareerCup questions