added reverse test& solution