Solution to POJ2636 Electrical Outlets