Yash Kulkarni's submission of Beautiful Subsequence | CodeChef