Amdocs Interview Question

Make pattern or triangle and diamond in c++