Solving the BoxTowers problem on Interview Street: https://box.interviewstreet.com/challenges/dashboard/#problem/4f3c491b4a54c