Codechef Practice Question