Added solution and test case.