Karthik's submission of Mr Wireless | CodeChef