ByteDance Interview Question

How to draw a triangular in OpenGL.