built staircase problem