Solving a balcony problem