Added problem1.c

Signed-off-by: Jacky Boen <aqiank@gmail.com>