Twitch Interview Question

Write code to reproduce a pattern written on the board