Add EW code from Ruby Warrior

Added my code through Level 3.