Create 11857.c

UVA -- 11857 in ANSI C