Opendoor interview question

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