Question d’entretien chez Amazon

And then a data structure based coding question-it involved merging two struct. Optimize the code and test it.