helping to solve stepsisters problem