結果 : printing pattern using loops in c hackerrank solution