added ABC Problem

Added two implementations of the ABC problem.
If checking the length is enough, I think that it is the correct thing to do. Would it be possible to add a comment explaining why it is enough?