Make Two Arrays Equal by Reversing Sub-arrays(LeetCode 1460):

Problem