Solutions and testcases to Ncode February held in "http://www.codechef.com/NCDFEB14"