Replacement resistance with exception handling

Sign in to test your solution.