IQVIA Interview Question

array sorting, finding g.c.d and some basic patterns .