solution in c for interview questions in crack code interview