Niyaz Nigmatullin's submission of Longest Weird Subsequence | CodeChef