Global Relay Interview Question

basic algorithm questions.