Create hackerearth1.c

challenge from hacker earth....sys cloud testing hiring challenge