Optimize machines for distributed merging cost | Kneron Interview Question