DISH Interview Question

How you solve a complex code