WIP
Solved in linear time
Merge pull request #1 from rafax/charging_chais

Charging chaos