rosa: Add revp solution.
rosa: Implement main function of revp solution.