Accenture Interview Question

Star print Tring print, prime number