Dinesh Goyal's submission of Subsequence | CodeChef