helping to solve stepsister problem