Thomson Reuters Interview Question

Coding round was there basically