DISH interview question

How you solve a complex code