Take it step by step try to find some 'pattern' that is there in the output.Try to from a logic on how you could print that than put something over here.Its not that difficult but try yourself.