Opendoor Interview Question

Write a runnable complicated code which includes medium algorithm and hard operation.