apple pie's submission of Building Towers | CodeChef