Bell interview question

code a 2d triangle and function to move and flip