Added a testing solution to 2nd exercise in c