Please Improve the test cases


#1

My Brute-Force solution got accepted. Please improve the test cases.