BCS Technology Interview Question

Q: write a code that output a pyramid star