Codechef Oct challenge Pre attempt