7G Fuse interview question

Print the given pattern in C++