Added solution for xor cipher problem, but complexity is till too high