Opendoor Interview Question

simple coding question