Clarivate Interview Question

During Round 2 - Two programming questions were asked.