Meta Interview Question

Not to expose the interview question according to assignment. Review algorithm and data structure if you don't know what to do.