Synoriq Interview Question

In Technical interview there is coding question to solve.