Proseon interview question

* ** *** **** Get output like this