Supper slow solution
took 18.8 seconds in sublime text build