Add solution for BUY1GET1

http://www.codechef.com/problems/BUY1GET1