Qualcomm Interview Question

Implement randeveouz for two threads in pseudo code