JWP (JW Player) interview question

describe a process to check if a binary tree is complete, perfect or balanced and write a pseudo code