added code codechef August challenge Q1