RBC interview question

Print the pyramid triagnle in java