Infosys interview question

Network Puzzle