Prodapt Solutions Interview Question

and pattern printing program