結果 : hackerrank problem solution in c