Mar'14 codechef and hackerrank easies