Incorrect implementation, but I want to save it.
implement NFA parser.
implement NFA parser.
Python impl for the problem:

NFA parser
All impl except matrix multiplication
Cleaning up.
Code accepted by Hackerrank.
No need for c version because it was not complete