uri-online-judge-solution-in-c