Reconstruct DNA from tagged fragments | Microsoft Interview Question