GE Digital interview question

Using Python, solve power triangle and output result in console.