Trantor Interview Question

pattern printing problem