Bell Interview Question

code a 2d triangle and function to move and flip