[C Solution]: Solved first 3 problems

Signed-off-by: Vishal Thanki <vishalthanki@gmail.com>
[Script]: Adding a script to remove all backup files.

Signed-off-by: Vishal Thanki <vishalthanki@gmail.com>