added rever words sol
added partition sol