added Ball and bags problem solution