Minimize moves to transform floor layouts | Optiver Interview Question