Simulanis interview question

Friend function Star pattern