Problem 137 in C