Opendoor Interview Question

Solve algorithms in their code.