HeyGen Interview Question

Fill in methods for the class and optimize it