Theory of Computation
Check acceptibility of string