MeridianLink Interview Question

recursively flip an array