Amazon Interview Question

Variation of house robber and another was about binary trees