Solving Standard problems using C