DEVUCLASSmarch

showing runtime error on equal number of B and G.
problem link-http://www.codechef.com/MARCH15/problems/DEVCLASS