Hackerrank Print Function Python Solution Ai