ChannelNet interview question

How would you optimize this algorithm?