Submission for Largest Sum Less Than M.(fails to pass the 3rd test case.)