Trimax Interview Question

technical part was difficult