Deem Interview Question

question was solving some algorithms