Roche Interview Question

Basic coding question to output a pyramid of stars