Re Split Hackerrank Solution In C