power m divisibility by 7 codechef solution