iLink Digital Interview Question

Questions were about API,multithreading and choose the missing code which complete the program