Python Print Function Hackerrank Solution C