Max's submission of An interesting subsequence | CodeChef